yournextrepresentative
yournextrepresentative copied to clipboard
migrate further fields from ResultEvent to use django-popolo models
Of the fields in ResultEvent
, we've already migrated winner
to be a foreign key to Person
, but there are other updates that could be made to improve data integrity:
-
winner_person_name
isn't needed any more -winner.name
would work -
post_id
andpost_name
can be replaced bypost
(a foreign key toPost
) andpost.label
-
winner_party_id
can be replaced bywinner_party
(a foreign key toOrganization
) - The
winner_party_name
property method can be replaced bywinner_party.name
These changes have been made in the DC fork, and could be backported by cherry-picking