Re: Adding ForeignKey to model alters SQL generated for ManyToManyField in model

2009-09-25 Thread Daniel C. Silverstein (cubes)
On Sep 25, 11:23 am, Ramiro Morales wrote: > > I suspect there is a clash between the names of your m2M and FK fields > (category, category_id), try changing one of them so there isn't one > relationship field with a name equal to the name of the other plus > '_id'. > > Note that I'm not saying t

Re: Adding ForeignKey to model alters SQL generated for ManyToManyField in model

2009-09-25 Thread Ramiro Morales
On Fri, Sep 25, 2009 at 3:10 PM, Daniel C. Silverstein (cubes) wrote: > > The following model renders correctly when viewed in the admin > interface: > class Cms_Consumer_Reports(models.Model): >    [...] >    category = models.ManyToManyField('ontology.Category', >        db_table='map_cms_consu

Adding ForeignKey to model alters SQL generated for ManyToManyField in model

2009-09-25 Thread Daniel C. Silverstein (cubes)
Howdy, I originally posted about this issue on django-users here: http://groups.google.com/group/django-users/browse_thread/thread/ca79f4cb085566a5 After further discussion of the issue on #django, I believe I have hit upon a genuine bug in the Django ORM layer so I am posting here. The followin