From 9c49e64b66994ff25980d9d0d21ce3599b17cc4b Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Sat, 6 Apr 2013 16:04:30 +0200 Subject: [PATCH] [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. --- django/forms/forms.py | 4 +- docs/releases/1.5.txt | 4 ++ tests/regressiontests/forms/tests/forms.py | 52 +++++++++++++++------- 3 files changed, 42 insertions(+), 18 deletions(-) diff --git a/django/forms/forms.py b/django/forms/forms.py index 3299c2becc..2a2290f21c 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -503,7 +503,7 @@ class BoundField(object): If attrs are given, they're used as HTML attributes on the