diff options
| author | Etienne Chové <chove@crans.org> | 2019-02-28 08:49:17 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-02-28 11:12:30 -0500 |
| commit | 4dcbe6eb2de38a856dae39928692e46fbcf5c475 (patch) | |
| tree | b3a60320b43caf1c694c032a24db3c8dfe624c5e /django | |
| parent | 25e724a5d6e331d2d73050d6dcdf2e8593c3aebf (diff) | |
Fixed #30221 -- Made label suffix of admin's read-only fields translatable.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/admin/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/helpers.py b/django/contrib/admin/helpers.py index 0c0b3a4e34..83719f4346 100644 --- a/django/contrib/admin/helpers.py +++ b/django/contrib/admin/helpers.py @@ -187,7 +187,7 @@ class AdminReadonlyField: if not self.is_first: attrs["class"] = "inline" label = self.field['label'] - return format_html('<label{}>{}:</label>', flatatt(attrs), capfirst(label)) + return format_html('<label{}>{}{}</label>', flatatt(attrs), capfirst(label), self.form.label_suffix) def contents(self): from django.contrib.admin.templatetags.admin_list import _boolean_icon |
