sqlflush fails for ManyToMany with inherited intermediary
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.
Change History
(5)
milestone: |
→ 1.1
|
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
(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.