#14996 closed (duplicate)
Incorrect persistent help_text for ModelMultipleChoiceField if widget is overridden in Modelform class Meta:
| Reported by: | Daryl Antony | Owned by: | nobody |
|---|---|---|---|
| Component: | Forms | Version: | 1.2 |
| Severity: | 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
For example, I have the following:
class SomeAdminModelForm(forms.ModelForm):
class Meta:
widgets = {
'm2m_field': forms.CheckboxSelectMultiple(),
}
... which alters the m2m field multiple select to a series of checkboxes.
Which is fine, except the help_text is still appended with 'Hold down "Control", or "Command" on a Mac, to select more than one.'
... which is obviously not necessary in this context.
Note:
See TracTickets
for help on using tickets.
Duplicate of #14402 which report another facet of this problem.