forum: fix order by date

This commit is contained in:
Antoine Bartuccio 2018-12-13 10:12:20 +01:00 committed by Skia
parent fc7e45190d
commit 068a80519c

View File

@ -62,7 +62,7 @@ class ForumSearchView(ListView):
queryset = SearchQuerySet().models(ForumMessage).autocomplete(auto=query)
if order_by == "date":
queryset.order_by("date")
queryset = queryset.order_by("-date")
queryset = queryset.load_all()