mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Made fix for #9321 less buggy and more effective.
Don't try to be smart about building a good-looking help string because it evaluates translations too early, simply use the same old strategy as before. Thanks Donald Stufft for the report. Also, actually fix the case reported by the OP by special-casing CheckboxSelectMultiple. Added tests. Refs #9321.
This commit is contained in:
@@ -522,10 +522,10 @@ facilities together with Django built-in form :doc:`fields </ref/forms/fields>`
|
||||
and :doc:`widgets </ref/forms/widgets>` aren't affected but need to be aware of
|
||||
what's described in :ref:`m2m-help_text-deprecation` below.
|
||||
|
||||
This is because, as an temporary backward-compatible provision, the described
|
||||
non-standard behavior has been preserved but moved to the model form field layer
|
||||
and occurs only when the associated widget is
|
||||
:class:`~django.forms.SelectMultiple` or a subclass.
|
||||
This is because, as an ad-hoc temporary backward-compatibility provision, the
|
||||
described non-standard behavior has been preserved but moved to the model form
|
||||
field layer and occurs only when the associated widget is
|
||||
:class:`~django.forms.SelectMultiple` or selected subclasses.
|
||||
|
||||
QuerySet iteration
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user