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 7600,"bug in postresql sequence_reset_sql causes ""loaddata"" to fail for derived class with alternate primary key",Shaun Cutts,nobody,"django.db.backends.postgresql.operations.sequence_reset.sql loops over ""fields"" when searching for primary keys: {{{ for f in model._meta.fields: }}} But it should loop only over fields specific to that class: {{{ for f in model._meta.local_fields: }}} With this fix, loaddata works on such derived models. ",,closed,"Database layer (models, ORM)",dev,,duplicate,,,Unreviewed,1,0,0,0,0,0