Skip to content

Commit

Permalink
Show manifesto from all elections for a person
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed May 1, 2024
1 parent 0edfd16 commit 8be93e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wcivf/apps/people/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def get_object(self, queryset=None):
# We can't show manifestos if they've never stood for a party
obj.manifestos = Manifesto.objects.filter(
party=obj.featured_candidacy.party,
election=obj.featured_candidacy.election,
election__in=obj.current_or_future_candidacies.values(
"election"
),
).filter(
Q(country="Local")
| Q(country="UK")
Expand Down

0 comments on commit 8be93e0

Please sign in to comment.