Widget himself on render checks it
{{{
# django.forms.widgets rows 684-685
if self.allow_multiple_selected:
context['widget']['attrs']['multiple'] = True
}}}
But help_text for widget, whose is rendered behind widget - don't checks
it. There we check only "isinstance"
{{{
# django.contrib.admin.options.py rows 280-281
if (isinstance(form_field.widget, SelectMultiple) ann not
isinstance(form_field.widget, (CheckboxSelectMultiple,
AutocompleteSelectMultiple))):
... # do some stuff with help text
}}}
as a result I get "msg", which should not be.
--
Ticket URL: <https://code.djangoproject.com/ticket/33805>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "Unbenannt.png" added.
rendered m2m field with allow_multiple_selected=False