Fixed issue with publish flag not be respected when getting blog posts for the site blog. Also for the digitalglarus blog now.
Related issue: https://redmine.ungleich.ch/issues/2284
This commit is contained in:
		
					parent
					
						
							
								32e488d457
							
						
					
				
			
			
				commit
				
					
						adcde9d5c7
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -70,7 +70,7 @@ def letscowork(request): | |||
| 
 | ||||
| def blog(request): | ||||
|     tags = ["digitalglarus"] | ||||
|     posts = Post.objects.filter_by_language(get_language()).filter(tags__name__in=tags) | ||||
|     posts = Post.objects.filter_by_language(get_language()).filter(tags__name__in=tags, publish=True) | ||||
|     context = { | ||||
|         'post_list': posts, | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue