Opened 4 years ago

Closed 4 years ago

#31086 closed Cleanup/optimization (fixed)

Improve error message for admin.E202.

Reported by: Collin Anderson Owned by: shubham singh
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: cmawebsite@…, shubham singh Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: yes UI/UX: no

Description

If an inline has mutliple foreign keys to the same parent model, you get an error message like so:

(admin.E202) 'account.PaymentApplication' has more than one ForeignKey to 'account.Invoice'.

This error message should recommend specifying fk_name.

Change History (6)

comment:1 by Mariusz Felisiak, 4 years ago

Component: Core (System checks)contrib.admin
Summary: Friendlier error message for admin.E202.Improve error message for admin.E202.
Triage Stage: UnreviewedAccepted
Version: 3.0master

comment:2 by shubham singh , 4 years ago

Owner: changed from nobody to shubham singh
Status: newassigned

comment:3 by shubham singh , 4 years ago

Cc: shubham singh added
Has patch: set
Resolution: fixed
Status: assignedclosed

comment:4 by Mariusz Felisiak, 4 years ago

Resolution: fixed
Status: closednew

PR is not merged so ticket is not fixed.

comment:5 by Mariusz Felisiak, 4 years ago

Patch needs improvement: set
Status: newassigned

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

Resolution: fixed
Status: assignedclosed

In f4647179:

Fixed #31086 -- Improved error message for admin model inlines with more than one foreign key to the same parent.

Note: See TracTickets for help on using tickets.
Back to Top