From b581270d64e785495c73e8448e2f8bc8feadfb9e Mon Sep 17 00:00:00 2001 From: Yaron Date: Wed, 11 Jun 2014 23:10:01 +0300 Subject: [PATCH] added opacity for non-voting ministers --- committeeVotes/models.py | 2 +- committeeVotes/templates/committeeVotes/index.html | 7 +++++-- committeeVotes/templates/committeeVotes/ministers.html | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) 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 @@

שרים

{% for m in ministers %} -
+ diff --git a/committeeVotes/templates/committeeVotes/ministers.html b/committeeVotes/templates/committeeVotes/ministers.html index 88727ff..4baa79d 100644 --- a/committeeVotes/templates/committeeVotes/ministers.html +++ b/committeeVotes/templates/committeeVotes/ministers.html @@ -14,7 +14,9 @@

{% for m in ministers %} -