google-code-export / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Definition of max_length for ImageModel #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ImageModel should set max_length argument according to constant from settings.

I just try to define my own model subclassed from ImageModel, and I have 
problems with too long 
paths, which I would like store in image field (for now it it set to default 
value=100). For me is it 
impossible to subclass without modifiing original ImageModel, but if this value 
will be possible to 
override from some settings variable, it could be very easy.

Original issue reported on code.google.com by maly.bzy...@gmail.com on 17 Feb 2009 at 4:16

GoogleCodeExporter commented 9 years ago
I am using Photologue version 2.1 (sorry, I forgot to mention it).

Original comment by maly.bzy...@gmail.com on 17 Feb 2009 at 4:18

GoogleCodeExporter commented 9 years ago
If you're just subclassing ImageModel check out ImageKit. It will allow you to 
define your own imagefield 
however you want. 

http://bitbucket.org/jdriscoll/django-imagekit/

Original comment by justin.d...@gmail.com on 17 Feb 2009 at 4:37

GoogleCodeExporter commented 9 years ago
Added PHOTOLOGUE_IMAGE_FIELD_MAX_LENGTH setting in r393 

Original comment by justin.d...@gmail.com on 23 Jul 2009 at 5:31