1
0
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:
Ramiro Morales
2013-05-21 18:32:39 -03:00
parent 01769823f1
commit 8c2fd050f8
5 changed files with 58 additions and 8 deletions

View File

@@ -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
~~~~~~~~~~~~~~~~~~