diff --git a/committeeVotes/models.py b/committeeVotes/models.py index df53fd4..3721999 100644 --- a/committeeVotes/models.py +++ b/committeeVotes/models.py @@ -29,7 +29,7 @@ class Vote(models.Model): vote = models.ForeignKey(VoteType) meeting = models.ForeignKey(Meeting) bill = models.ForeignKey(Bill) - minister = models.ForeignKey(Minister) + minister = models.ForeignKey(Minister, related_name="votes") class Meta: unique_together = ("bill","minister") diff --git a/committeeVotes/templates/committeeVotes/index.html b/committeeVotes/templates/committeeVotes/index.html index f39d1d2..8b8adeb 100644 --- a/committeeVotes/templates/committeeVotes/index.html +++ b/committeeVotes/templates/committeeVotes/index.html @@ -64,9 +64,12 @@