mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-04 01:44:15 +00:00
forum: fix order by date
This commit is contained in:
1 parent
fc7e45190d
commit
068a80519c
1 file changed
+1
-1
+1
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user