Code

Opened 6 years ago

Closed 5 years ago

Last modified 3 years ago

#9932 closed (fixed)

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

Reported by: david Owned by: david
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 6 years ago.
Patch with tests against r9690

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by david

Patch with tests against r9690

comment:1 Changed 5 years ago by jacob

  • milestone set to 1.1
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 5 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(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 5 years ago by russellm

(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 3 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.