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:
committed by
Claude Paroz
parent
0f99246b6f
commit
ab686022f8
@@ -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
|
||||
==========================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user