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 9804,sqlflush fails for ManyToMany with inherited intermediary,jdimov,nobody,"There's a bug in the sequence_list method of django.db.backends.BaseDatabaseIntrospection, but I don't know how to fix it. It has to do with Many-to-Many relationships through intermediary models, where the intermediary model itself is inherited from a non-abstract base model. In this case, the sequnece_list contains id sequence counter which do not (and should not) actually exist, because the model uses the base model's id counter. The result of all this is that the manage.py sqlflush command fails, and I can't run my tests. ",,closed,"Database layer (models, ORM)",1.0,,fixed,"ManyToMany, sqlflush, sequence_list",,Accepted,0,0,0,0,0,0