From d37ea559174bd03455f376734418d2014897aca7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 22 Oct 2016 10:06:26 +0200 Subject: Image filename are now up to 255 characters. Length test is done on forms. (refs #3325) --- ishtar_common/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 17df621db..c9be5b086 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -608,9 +608,10 @@ class ItemKey(models.Model): class ImageModel(models.Model): - image = models.ImageField(upload_to="upload/", blank=True, null=True) + image = models.ImageField(upload_to="upload/", blank=True, null=True, + max_length=255) thumbnail = models.ImageField(upload_to='upload/thumbs/', blank=True, - null=True) + null=True, max_length=255) IMAGE_MAX_SIZE = settings.IMAGE_MAX_SIZE THUMB_MAX_SIZE = settings.THUMB_MAX_SIZE IMAGE_PREFIX = '/' -- cgit v1.2.3