How do I define an ImageField in a Django abstract model?

Posted by blackrobot on Stack Overflow See other posts from Stack Overflow or by blackrobot
Published on 2010-01-14T17:52:43Z Indexed on 2010/04/19 5:03 UTC
Read the original article Hit count: 251

Filed under:
|

I have an abstract Django model and I want to define an ImageField inside of it. The problem is that when I do define it, it raises an error because I don't have an "upload_to" attribute. Is there a way to still define it and have a separate folder for each inheriting class?

© Stack Overflow or respective owner

Related posts about django-models

Related posts about django