Opened 5 years ago

Closed 5 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, 5 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 , 5 years ago

Owner: changed from nobody to shubham singh
Status: newassigned

comment:3 by shubham singh , 5 years ago

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

comment:4 by Mariusz Felisiak, 5 years ago

Resolution: fixed
Status: closednew

PR is not merged so ticket is not fixed.

comment:5 by Mariusz Felisiak, 5 years ago

Patch needs improvement: set
Status: newassigned

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 5 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