Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#22613 closed Bug (fixed)

ModelAdmin.formfield_for_choice_field() should be listed in InlineModelAdmin options in ModelAdmin

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm using InlineModelAdmin and I had a strong need for ModelAdmin.formfield_for_choice_field().

However, it is not listed in InlineModelAdmin options although formfield_for_foreignkey() and formfield_for_manytomany() are.
formfield_for_choice_field() is implemented in BaseModelAdmin and I checked that it works fine with InlineModelAdmin.

Change History (3)

comment:1 by Tim Graham <timograham@…>, 11 years ago

Resolution: fixed
Status: newclosed

In 986bd41f8a6e7a667380c59d347edbdf61b7fd02:

Fixed #22613 -- Added formfield_for_choice_field() to the list of methods that InlineModelAdmin supports.

comment:2 by Tim Graham <timograham@…>, 11 years ago

In 42f8029b366054cbcbc88a4f1a32e424e1938faf:

[1.6.x] Fixed #22613 -- Added formfield_for_choice_field() to the list of methods that InlineModelAdmin supports.

Backport of 986bd41f8a from master

comment:3 by Tim Graham <timograham@…>, 11 years ago

In 2455699a9167b6696941ae2804b1e59e64083d71:

[1.7.x] Fixed #22613 -- Added formfield_for_choice_field() to the list of methods that InlineModelAdmin supports.

Backport of 986bd41f8a from master

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