Opened 8 years ago
Last modified 8 years ago
#27903 closed Bug
RenameModel does not not change ForeignKey with related_name='+' — at Version 1
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 (last modified by )
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 (PR: https://github.com/django/django/pull/8146). This only affects 1.10, this issue seems to be fixed in 1.11.
Note:
See TracTickets
for help on using tickets.