mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +00:00
forum: fix order by date
This commit is contained in:
parent
fc7e45190d
commit
068a80519c
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user