id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 11114,sql sequence reset ignores through meta-data for ManyToMany relations,phaesler,nobody,"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"".",,closed,Core (Management commands),1.0,,duplicate,,,Unreviewed,0,0,0,0,0,0