I have the following model in my app, using the content-type django
framework in version 1.6.1 :
class GenericMedia(models.Model):
limit = models.Q(model = 'Image') | models.Q(model = 'Video') |
models.Q(model = 'Other')
content_type= models.ForeignKey(ContentType, limit_ch
Thanks Daniel for your answer.
I didn't know I could use a simple FK in this case. I will try using it. I
didn't want to directly inherit from GenericMedia because I don't want to
merge ContentType datas (content_type, content_object, etc.) with my own
Media datas (description, link, ...)
So f
2 matches
Mail list logo