Opened 7 years ago

Last modified 7 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 Alexander Schrijver)

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.

Change History (1)

comment:1 by Alexander Schrijver, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top