]> git.parisson.com Git - teleforma.git/commitdiff
no media weight blank
authoryomguy <yomguy@parisson.com>
Thu, 21 Feb 2013 09:03:24 +0000 (10:03 +0100)
committeryomguy <yomguy@parisson.com>
Thu, 21 Feb 2013 09:03:24 +0000 (10:03 +0100)
teleforma/models/core.py

index 1422dc7be905c95c193d64b1b5b47c817870c658..ec8cf127bb0552136137b93221d9fba498716815 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, blank=True)
+    weight          = models.IntegerField(_('weight'), choices=WEIGHT_CHOICES, default=1)
     notes = generic.GenericRelation(Note)
 
     def get_fields(self):