#33586: Applying RunPython backward results in ValueError when involved models are
referenced through multiple foreign keys
-------------------------------+------------------------------------
Reporter: Jeremy Poulin | Owner: (none)
Type: Bug | Status: new
Component: Migrations | Version: 4.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Simon Charette):
* summary:
Cannot delete object (A) referenced by another object (B) if said
object (A) has a foreign key to a custom user.
=>
Applying RunPython backward results in ValueError when involved models
are referenced through multiple foreign keys
Comment:
#36161 was a duplicate that demonstrated the problem can be triggered even
without a custom user model.
I'm going to rename this ticket to better capture the generic nature of
the problem.
--
Ticket URL: <
https://code.djangoproject.com/ticket/33586#comment:29>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.