From: yomguy Date: Thu, 21 Feb 2013 09:14:45 +0000 (+0100) Subject: null weight ok X-Git-Tag: 2.8.1-pro~491^2~18 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8dfae34974388227c1436844b121c5a00a910e24;p=teleforma.git null weight ok --- diff --git a/teleforma/models/pro.py b/teleforma/models/pro.py index d4198a1f..f562b1f4 100755 --- a/teleforma/models/pro.py +++ b/teleforma/models/pro.py @@ -140,7 +140,7 @@ class Question(models.Model): description = models.CharField(_('description'), max_length=1024, blank=True) question = tinymce.models.HTMLField(_('question'), blank=True) rank = models.IntegerField(_('rank'), blank=True, null=True) - weight = models.IntegerField(_('weight'), choices=WEIGHT_CHOICES, default=1) + weight = models.IntegerField(_('weight'), choices=WEIGHT_CHOICES, default=1, null=True, blank=True) min_nchar = models.IntegerField(_('minimum numbers of characters')) status = models.IntegerField(_('status'), choices=STATUS_CHOICES, default=3)