Skip to content

Commit

Permalink
orders taxonomy facets by name
Browse files Browse the repository at this point in the history
  • Loading branch information
actlikewill committed Jul 26, 2024
1 parent c84443b commit 7a175bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion peachjam/views/courts.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def add_facets(self, context):
self.get_base_queryset(), exclude="taxonomies"
)
.filter(taxonomies__topic__isnull=False)
.order_by()
.order_by("taxonomies__topic__name")
.values_list("taxonomies__topic__name", flat=True)
.distinct()
)
Expand Down
2 changes: 1 addition & 1 deletion peachjam/views/generic_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def add_facets(self, context):
taxonomies = list(
self.form.filter_queryset(self.get_base_queryset(), exclude="taxonomies")
.filter(taxonomies__topic__isnull=False)
.order_by()
.order_by("taxonomies__topic__name")
.values_list("taxonomies__topic__name", flat=True)
.distinct()
)
Expand Down

0 comments on commit 7a175bc

Please sign in to comment.