summaryrefslogtreecommitdiff
path: root/polls/models.py
diff options
context:
space:
mode:
authoretienne2008-12-02 22:19:02 +0000
committeretienne2008-12-02 22:19:02 +0000
commit7ecbc6bf2ba614afee40d344d9191abd5f371db4 (patch)
tree2fc410308ee593cb82a544047799468a7f050329 /polls/models.py
parentc43645bb0dab22f9b2fd368f60ea6d7b14ddc44a (diff)
Modification of choices
Diffstat (limited to 'polls/models.py')
-rw-r--r--polls/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/polls/models.py b/polls/models.py
index cbecbd9..d76acaa 100644
--- a/polls/models.py
+++ b/polls/models.py
@@ -65,7 +65,7 @@ class Choice(models.Model):
poll = models.ForeignKey(Poll)
name = models.CharField(max_length=200)
order = models.IntegerField()
- limit = models.IntegerField(null=True)
+ limit = models.IntegerField(null=True, blank=True)
available = models.BooleanField(default=True)
class Admin:
pass
@@ -78,4 +78,4 @@ class Vote(models.Model):
VOTE = ((1, (_('Yes'), _('Yes'))),
(0, (_('No'), _('Maybe')), ),
(-1, (_('No'), _('No'))),)
- value = models.IntegerField(choices=VOTE, null=True)
+ value = models.IntegerField(choices=VOTE, blank=True)