Opened 8 years ago

Closed 7 years ago

Last modified 5 years ago

#9932 closed (fixed)

exclude in InlineModelAdmin should not contain a ForeignKey field used in ModelAdmin.model

Reported by: David Larlet Owned by: David Larlet
Component: contrib.admin Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Add a validation error when it happens, otherwise the error (KeyError) is hard to understand.

Attachments (1)

patch_django_9932.20081230.diff (3.0 KB) - added by David Larlet 8 years ago.
Patch with tests against r9690

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by David Larlet

Patch with tests against r9690

comment:1 Changed 8 years ago by Jacob

milestone: 1.1
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 7 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [10668]) Fixed #9932 -- Added a validation error when an inline tries to exclude the foreign key that provides the link to the parent model. Thanks to david for the report and patch.

comment:3 Changed 7 years ago by Russell Keith-Magee

(In [10672]) [1.0.X] Fixed #9932 -- Added a validation error when an inline tries to exclude the foreign key that provides the link to the parent model. Thanks to david for the report and patch.

Merge of r10668 from trunk.

comment:4 Changed 5 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

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