#11114: sql sequence reset ignores through meta-data for ManyToMany relations
-----------------------------+----------------------------------------------
 Reporter:  phaesler         |       Owner:  nobody    
   Status:  new              |   Milestone:            
Component:  django-admin.py  |     Version:  1.0       
 Keywords:                   |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 The sql sequence reset code in django.core.management ignores any
 "through" table meta-data on ManyToMany relations.  In particular, it
 assumes that the primary key column of the many-to-many join table is
 called "id", even if a "through" Model is given that declares a primary
 key column with a different name.

 This affects at least the postgresql and oracle backends:

 db/backends/oracle/base.py:186

 and

 db/backends/postgresql/operations.py:130

 Both explicitly set the primary key column name to "id".

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11114>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to