fix sort order for posts via tag, version 33
This commit is contained in:
parent
74e11d8992
commit
eacd3816f5
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ class BlogTagIndexPage(Page):
|
|||
|
||||
def get_context(self, request):
|
||||
tag = request.GET.get('tag')
|
||||
blogpages = BlogPage.objects.filter(tags__name=tag)
|
||||
blogpages = BlogPage.objects.live().filter(tags__name=tag).order_by('-first_published_at')
|
||||
|
||||
# Update template context
|
||||
context = super().get_context(request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue