Opened 7 years ago

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

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

comment:2 by shubham singh , 7 years ago

Owner: changed from nobody to shubham singh
Status: new → assigned

comment:3 by shubham singh , 7 years ago

Cc: shubham singh added
Has patch: set
Resolution: → fixed
Status: assigned → closed

comment:4 by Mariusz Felisiak, 7 years ago

Resolution: fixed
Status: closed → new

PR is not merged so ticket is not fixed.

comment:5 by Mariusz Felisiak, 7 years ago

Patch needs improvement: set
Status: new → assigned

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

Resolution: → fixed
Status: assigned → closed

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