Skip to content

Commit

Permalink
get the party for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonje committed Sep 26, 2017
1 parent 07109e6 commit 86a13d9
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -258,7 +258,10 @@ def update_from_form501(self):
self.save()

# set party based on latest Form501 where the field is populated
latest_party = filings.filter(party__isnull=False).latest('date_filed')
latest_party = filings.filter(
party__isnull=False
).latest('date_filed').get_party()

if latest_party != self.party:
self.party = latest_party
self.save()
Expand Down

0 comments on commit 86a13d9

Please sign in to comment.