summaryrefslogtreecommitdiff
path: root/django/forms/forms.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-08-22 09:14:06 +0200
committerClaude Paroz <claude@2xlibre.net>2013-08-22 09:52:54 +0200
commit8cd8742981020e315acc4e70bdf3613fcf68e3a8 (patch)
tree7355e157b94694a7ed4337dc1a2221e5fdc7359f /django/forms/forms.py
parent8d65b6082c8bf5df25608d8733470879a8a61d7d (diff)
Moved translator comment just above the target string
Diffstat (limited to 'django/forms/forms.py')
-rw-r--r--django/forms/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py
index ec51507981..d8d08e18fe 100644
--- a/django/forms/forms.py
+++ b/django/forms/forms.py
@@ -526,9 +526,9 @@ class BoundField(object):
"""
contents = contents or self.label
# Only add the suffix if the label does not end in punctuation.
+ label_suffix = label_suffix if label_suffix is not None else self.form.label_suffix
# Translators: If found as last label character, these punctuation
# characters will prevent the default label_suffix to be appended to the label
- label_suffix = label_suffix if label_suffix is not None else self.form.label_suffix
if label_suffix and contents and contents[-1] not in _(':?.!'):
contents = format_html('{0}{1}', contents, label_suffix)
widget = self.field.widget