Opened 13 years ago

Closed 13 years ago

#16529 closed Bug (duplicate)

ManyToManyField + CheckboxSelectMultiple widget = wrong help message

Reported by: Sergiy Kuzmenko Owned by: nobody
Component: Forms Version: 1.3
Severity: Normal Keywords: models, forms
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In forms:

class MyModelForm(ModelForm):
    class Meta:
        model = MyModel
        widgets = {
            'my_m2m_field': CheckboxSelectMultiple(),
        }

When rendering it to template help_text for my_m2m_field outputs Hold down "Control", or "Command" on a Mac, to select more than one. which is not applicable when using CheckboxSelectMultiple widget.

There is a bit of conceptual gap here. This message is widget specific, but it's defined in the model field (in django/db/models/fields/related.py line 1023 for Django 1.3)

Change History (1)

comment:1 by Karen Tracey, 13 years ago

Resolution: duplicate
Status: newclosed

Already reported multiple times: #16522, #16370, #9321

Please search before opening a new ticket.

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