summaryrefslogtreecommitdiff
path: root/polls/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'polls/models.py')
-rw-r--r--polls/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/polls/models.py b/polls/models.py
index 4a7f584..531c1e3 100644
--- a/polls/models.py
+++ b/polls/models.py
@@ -81,6 +81,11 @@ class Poll(models.Model):
comment.delete()
self.delete()
+ def getChoices(self):
+ """
+ Get choices associated to this vote"""
+ return Choice.objects.filter(poll=self)
+
class Admin:
pass
class Meta: