Skip to content

Commit

Permalink
Set institution list ordering from newest to oldest.
Browse files Browse the repository at this point in the history
  • Loading branch information
dzejkobi committed Apr 12, 2021
1 parent 6a485c2 commit 465b120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feder/monitorings/views.py
Expand Up @@ -58,7 +58,7 @@ def get_queryset(self):
if not self.request.user.is_staff:
qs = qs.only_public()

return qs.with_case_count()
return qs.with_case_count().order_by("-created")


class MonitoringDetailView(SelectRelatedMixin, ExtraListMixin, DetailView):
Expand Down

0 comments on commit 465b120

Please sign in to comment.