#36730 closed Bug (fixed)
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: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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 (6)
comment:1 by , 3 weeks ago
| Description: | modified (diff) |
|---|
comment:2 by , 3 weeks ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 3 weeks ago
| Patch needs improvement: | set |
|---|
comment:4 by , 3 weeks ago
| Patch needs improvement: | unset |
|---|---|
| Triage Stage: | Accepted → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
Thanks for the repro!