Opened 9 years ago
Last modified 9 years ago
#27903 closed Bug
RenameModel does not not change ForeignKey with related_name='+' — at Initial Version
| Reported by: | Alexander Schrijver | Owned by: | nobody |
|---|---|---|---|
| Component: | Migrations | Version: | 1.10 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
When you create a ForeignKey with a related_name='+' to a second model, and you rename the second model, the model which is referred in the ForeignKey is not updated. I've created a updated OperationTests.test_rename_model test to show this (I'll update this ticket when I've created the PR). This only affects 1.10, this issue seems to be fixed in 1.11.
Note:
See TracTickets
for help on using tickets.