mirror of
https://github.com/django/django.git
synced 2025-10-30 00:56:09 +00:00
[1.5.x] Fixed #20211: Document backwards-incompatible change in BoundField.label_tag
Also cleaned up label escaping and consolidated the test suite regarding
label_tag.
Backport of ab686022f from master.
This commit is contained in:
committed by
Claude Paroz
parent
991432ee8a
commit
9c49e64b66
@@ -697,6 +697,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
|
||||
==========================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user