mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +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)
|
queryset = SearchQuerySet().models(ForumMessage).autocomplete(auto=query)
|
||||||
|
|
||||||
if order_by == "date":
|
if order_by == "date":
|
||||||
queryset.order_by("date")
|
queryset = queryset.order_by("-date")
|
||||||
|
|
||||||
queryset = queryset.load_all()
|
queryset = queryset.load_all()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user