diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-09-19 13:37:23 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-09-19 13:37:23 +0200 |
commit | a4a2f071eda97ea6c1b0c6cb43e09aaf29cb11f5 (patch) | |
tree | 188688df00892460066b415944d81acd30fdfab9 /chimere/models.py | |
parent | bc77ba9c7c21bdcb42a4b45a1011f9219d712f6d (diff) | |
download | Chimère-a4a2f071eda97ea6c1b0c6cb43e09aaf29cb11f5.tar.bz2 Chimère-a4a2f071eda97ea6c1b0c6cb43e09aaf29cb11f5.zip |
Remove height and width not null constraint on PictureFile
Diffstat (limited to 'chimere/models.py')
-rw-r--r-- | chimere/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chimere/models.py b/chimere/models.py index 31ca0b6..6ff9d62 100644 --- a/chimere/models.py +++ b/chimere/models.py @@ -579,8 +579,8 @@ class PictureFile(models.Model): name = models.CharField(_(u"Name"), max_length=150) picture = models.ImageField(_(u"Image"), upload_to='pictures', height_field='height', width_field='width') - height = models.IntegerField(_(u"Height")) - width = models.IntegerField(_(u"Width")) + height = models.IntegerField(_(u"Height"), blank=True, null=True) + width = models.IntegerField(_(u"Width"), blank=True, null=True) miniature = models.BooleanField(_(u"Display inside the description?"), default=settings.CHIMERE_MINIATURE_BY_DEFAULT) thumbnailfile = models.ImageField(_(u"Thumbnail"), upload_to='pictures', |