]> git.parisson.com Git - teleforma.git/commitdiff
oops, ok
authoryomguy <yomguy@parisson.com>
Thu, 21 Feb 2013 09:15:50 +0000 (10:15 +0100)
committeryomguy <yomguy@parisson.com>
Thu, 21 Feb 2013 09:15:50 +0000 (10:15 +0100)
teleforma/models/core.py
teleforma/models/pro.py

index ec8cf127bb0552136137b93221d9fba498716815..249e6d6602bcfed394cdc107da542b1849d77997 100755 (executable)
@@ -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):
index f562b1f4c8db45dd32074ced803ab1d3beee7f81..d4198a1fd731c7d7c2437309fac4173e9e691183 100755 (executable)
@@ -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)