Changes between Initial Version and Version 5 of Ticket #23630
- Timestamp:
- Oct 14, 2014, 7:45:35 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23630
- Property Triage Stage Unreviewed → Accepted
- Property Cc added
- Property Severity Normal → Release blocker
-
Ticket #23630 – Description
initial v5 1 `AlterModelTable` only renames a model's table, but doesn't rename corresponding tables created for m2m fields. 1 According to https://docs.djangoproject.com/en/dev/ref/models/fields/#ref-manytomany, when a m2m field uses an automatic (implicit) through model, the through model's table is named by combining the containing model's table-name and the field name. Consequently, if a model contains such m2m fields and its table name is changed by a migration, the m2m field's tables should also be renamed. 2 3 This doesn't happen (see comment:4 and comment:5 for details), leading to broken models.