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
On Thursday, 2 January 2014 21:09:22 UTC, arthur...@gmail.com wrote:
>
> 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') |
> model
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
3 matches
Mail list logo