Skip to content

Commit

Permalink
Merge pull request #1926 from laws-africa/judgment-sorting
Browse files Browse the repository at this point in the history
sort judgments by -date
  • Loading branch information
longhotsummer authored Jul 22, 2024
2 parents feb1e34 + 884a91a commit 072560a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions peachjam/views/courts.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class FilteredJudgmentView(FilteredDocumentListView):
exclude_facets = []
group_by_date = "month-year"

def get_form(self):
self.form_defaults = {"sort": "-date"}
return super().get_form()

def base_view_name(self):
return _("Judgments")

Expand Down

0 comments on commit 072560a

Please sign in to comment.