hey
so I would like to define a set of specs in my django settings, like
THUMBS = (640, 480, 360, 240)
then create as many ImageSpecField in my model as the number of values I define in THUMBS
I'm thinking of possible ways to implement it:
- override my model's __init__ and attach a set of ImageSpecFields (or maybe register a set of generators?)
- define a metaclass that would create the set of ImageSpecFields when __new__ is called, then extend my model with the metaclass, kind of scary to think of Django's Model class interactions...
none of these I'm really happy with, so any advise / suggestion you may have it would be greatly appreciated. trying to search on stackoverflow and here, but couldn't find anything similar
many thanks