Re: Django GenericRelation not working

2014-01-03 Thread arthur . muchir
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

Re: Django GenericRelation not working

2014-01-03 Thread Daniel Roseman
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

Django GenericRelation not working

2014-01-02 Thread arthur . muchir
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