Opened 16 years ago

Closed 16 years ago

Last modified 13 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: no UI/UX: no

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 16 years ago.
Patch with tests against r9690

Download all attachments as: .zip

Change History (5)

by David Larlet, 16 years ago

Patch with tests against r9690

comment:1 by Jacob, 16 years ago

milestone: 1.1
Triage Stage: UnreviewedAccepted

comment:2 by Russell Keith-Magee, 16 years ago

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 by Russell Keith-Magee, 16 years ago

(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 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

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