Opened 2 hours ago

Last modified 107 minutes ago

#36730 assigned Bug

Model validation of constraints fails for *excluded* ForeignKeys referenced by attname

Reported by: Adam Johnson Owned by: Adam Johnson
Component: Database layer (models, ORM) Version: 6.0
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description (last modified by Adam Johnson)

Like #36433, but for the case where the foreign gets excluded by the form due to already being invalid. Another 6.0 release blocker, as forms that would validate before now crash with FieldError. Bisected to e44e8327d3d88d86895735c0e427102063ff5b55 as well.

Reproduction repository: https://github.com/adamchainz/django-ticket-36730

Change History (3)

comment:1 by Adam Johnson, 2 hours ago

Description: modified (diff)

comment:2 by Jacob Walls, 2 hours ago

Triage Stage: UnreviewedAccepted

Thanks for the repro!

comment:3 by Jacob Walls, 107 minutes ago

Patch needs improvement: set
Note: See TracTickets for help on using tickets.
Back to Top