Skip to content

Commit

Permalink
Fix NUTS filter
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Jul 5, 2024
1 parent 30c3181 commit b3110f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ynr/apps/uk_results/views/parl_winners.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def region_filter(self, queryset, name, value):
"""
Filter queryset by region using the NUTS1 code
"""
return queryset.filter(ballot_paper__tags__NUTS1__key__in=[value])
return queryset.filter(tags__NUTS1__key__in=[value])

def part_entered_filter(self, queryset, name, value):
"""
Expand Down

0 comments on commit b3110f0

Please sign in to comment.