Skip to content

Commit

Permalink
set default sort
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Jul 16, 2024
1 parent acfaa66 commit c3fdd81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions peachjam/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class BaseDocumentFilterForm(forms.Form):

def __init__(self, defaults, data, *args, **kwargs):
self.params = QueryDict(mutable=True)
self.params.update({"sort": "title"})
self.params.update(defaults or {})
self.params.update(data)

Expand Down

0 comments on commit c3fdd81

Please sign in to comment.