Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#27969 closed Bug (fixed)

models.Field.formfield() should allow the 'disabled' kwarg for fields with choices

Reported by: Moritz Pfeiffer Owned by: kapil garg
Component: Database layer (models, ORM) Version: 1.10
Severity: Normal 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

When calling the formfield() method for a modelfield with choices, the disabled keyword argument is not applied to the returned form field.

Change History (5)

comment:1 by Tim Graham, 7 years ago

Component: UncategorizedDatabase layer (models, ORM)
Summary: The ModelField formfield() method should allow the 'disabled' kwarg for fields with choicesmodels.Field.formfield() should allow the 'disabled' kwarg for fields with choices
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:2 by kapil garg, 7 years ago

Owner: changed from nobody to kapil garg
Status: newassigned

comment:3 by kapil garg, 7 years ago

Has patch: set

comment:4 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In 7e09fa7f:

Fixed #27969 -- Fixed models.Field.formfield() setting 'disabled' for fields with choices.

comment:5 by Tim Graham <timograham@…>, 7 years ago

In a8c540ac:

[1.11.x] Fixed #27969 -- Fixed models.Field.formfield() setting 'disabled' for fields with choices.

Backport of 7e09fa7f519daf2f9c26587c3da5dc044d84b032 from master

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