Skip to content

Commit

Permalink
limit persondata to MP for now
Browse files Browse the repository at this point in the history
This is a hack to resolve the problem of looking up PPC party data for
MPs
  • Loading branch information
struan committed Jul 5, 2024
1 parent c2a53f5 commit 994c5c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hub/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def data(self, as_dict=False, mp_name=False):
else:
for row in (
PersonData.objects.filter(
# TODO this is a temporary thing while we come up with a better solution
person__personarea__person_type="MP",
person__personarea__area_id__in=area_ids,
data_type__name=col["name"],
)
Expand Down

0 comments on commit 994c5c9

Please sign in to comment.