Skip to content

Commit

Permalink
Order elections page by election and post
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed May 24, 2024
1 parent 2cef6bc commit 7696652
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ynr/apps/elections/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ def get_context_data(self, **kwargs):
filter=Q(membership__elected=True),
)
)
.order_by("election__election_date", "election__name")
.order_by(
"election__election_date", "election__name", "post__label"
)
)
f = CurrentOrFutureBallotFilter(self.request.GET, qs)

Expand Down

0 comments on commit 7696652

Please sign in to comment.