Description

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.

Oldest firstNewest firstThreaded

Show commentsShow property changes

Change History (4)

(In [10552]) Fixed #9804 -- Corrected the introspection of sequence names. This was causing problems when flushing tables that had many-to-many relations through an inherited table. Thanks to jdimov for the report.

(In [10553]) [1.0.X] Fixed #9804 -- Corrected the introspection of sequence names. This was causing problems when flushing tables that had many-to-many relations through an inherited table. Thanks to jdimov for the report.