1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #20211: Document backwards-incompatible change in BoundField.label_tag

Also cleaned up label escaping and consolidated the test suite regarding
label_tag.
This commit is contained in:
Baptiste Mispelon
2013-04-06 16:04:30 +02:00
committed by Claude Paroz
parent 0f99246b6f
commit ab686022f8
3 changed files with 42 additions and 18 deletions

View File

@@ -696,6 +696,10 @@ Miscellaneous
longer. If you're using ``django.contrib.redirects``, make sure
:setting:`INSTALLED_APPS` contains ``django.contrib.sites``.
* :meth:`BoundField.label_tag <django.forms.BoundField.label_tag>` now
escapes its ``contents`` argument. To avoid the HTML escaping, use
:func:`django.utils.safestring.mark_safe` on the argument before passing it.
Features deprecated in 1.5
==========================