Merge branch 'develop' of github.com:ungleich/dynamicweb into develop
This commit is contained in:
		
				commit
				
					
						c33b85626a
					
				
			
		
					 13 changed files with 171 additions and 43 deletions
				
			
		|  | @ -64,11 +64,14 @@ def blog(request): | |||
| 
 | ||||
| 
 | ||||
| def blog_detail(request, slug): | ||||
|     post = Post.objects.filter_by_language(get_language()).filter(slug=slug).first() | ||||
|     # post = Post.objects.filter_by_language(get_language()).filter(slug=slug).first() | ||||
|     language = 'en-us' # currently nothing is translated to german so we give then en | ||||
| 
 | ||||
|     post = Post.objects.translated(language, slug=slug).first() | ||||
|     context = { | ||||
|         'post': post, | ||||
|     } | ||||
|     return render(request, 'post_detail.html', context) | ||||
|     return render(request, 'glarus_blog/post_detail.html', context) | ||||
| 
 | ||||
| 
 | ||||
| def support(request): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue