Re: [Django] #33586: Applying RunPython backward results in ValueError when involved models are referenced through multiple foreign keys

6 views
Skip to first unread message

Django

unread,
Feb 6, 2025, 8:50:01 AMFeb 6
to django-...@googlegroups.com
#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 Enrico Zini):

* cc: Enrico Zini (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/33586#comment:30>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 13, 2025, 12:18:30 PM (8 days ago) Sep 13
to django-...@googlegroups.com
#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
-------------------------------+------------------------------------
Comment (by Tanishq):

Hey,

I was able to reproduce this locally. Noticed PR #16147 mentioned, but it
hasn’t been updated in a while and isn’t linked here.
Is this still open for new ideas/PRs? Happy to build on that one or just
put together a fresh patch with a test + perf notes, whichever helps most.
--
Ticket URL: <https://code.djangoproject.com/ticket/33586#comment:31>

Django

unread,
Sep 15, 2025, 11:07:38 AM (6 days ago) Sep 15
to django-...@googlegroups.com
#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
-------------------------------+------------------------------------
Comment (by Jacob Walls):

That PR was closed with a link to comment:19. Yes, a new PR is welcome--as
always, be sure to take previous feedback into account.
--
Ticket URL: <https://code.djangoproject.com/ticket/33586#comment:32>

Django

unread,
Sep 16, 2025, 8:53:44 AM (5 days ago) Sep 16
to django-...@googlegroups.com
#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
-------------------------------+------------------------------------
Comment (by Tanishq):

Thank you for the go-ahead, Jacob. I'll begin working on the new PR
shortly and make sure to keep the previous feedback in mind while
preparing the patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/33586#comment:33>
Reply all
Reply to author
Forward
0 new messages