From: yomguy Date: Thu, 21 Feb 2013 09:15:50 +0000 (+0100) Subject: oops, ok X-Git-Tag: 2.8.1-pro~491^2~17 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=98b433b68d7371e5f16481b7265a60156fc57661;p=teleforma.git oops, ok --- diff --git a/teleforma/models/core.py b/teleforma/models/core.py index ec8cf127..249e6d66 100755 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -315,7 +315,7 @@ class MediaBase(Model): code = CharField(_('code'), max_length=255, blank=True) is_published = BooleanField(_('published')) mime_type = CharField(_('mime type'), max_length=255, blank=True) - weight = models.IntegerField(_('weight'), choices=WEIGHT_CHOICES, default=1) + weight = models.IntegerField(_('weight'), choices=WEIGHT_CHOICES, default=1, null=True, blank=True) notes = generic.GenericRelation(Note) def get_fields(self): diff --git a/teleforma/models/pro.py b/teleforma/models/pro.py index f562b1f4..d4198a1f 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, null=True, blank=True) + weight = models.IntegerField(_('weight'), choices=WEIGHT_CHOICES, default=1) min_nchar = models.IntegerField(_('minimum numbers of characters')) status = models.IntegerField(_('status'), choices=STATUS_CHOICES, default=3)