From 58745368497e9d7f76b8e9b3ef416348c514f9c5 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Thu, 2 Aug 2018 18:18:26 +0100 Subject: [PATCH] Remove spurious uses of unlocalize filter on widget ID These were added in #3478 to ensure that numeric object IDs would not be affected by local number formatting; however, within widget templates, attrs.id refers to a string identifier, not a numeric ID. --- .../admin/templates/wagtailadmin/widgets/chooser.html | 4 +--- .../templates/table_block/widgets/table.html | 11 +++++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/wagtail/admin/templates/wagtailadmin/widgets/chooser.html b/wagtail/admin/templates/wagtailadmin/widgets/chooser.html index c24b12b4e..c3c970081 100644 --- a/wagtail/admin/templates/wagtailadmin/widgets/chooser.html +++ b/wagtail/admin/templates/wagtailadmin/widgets/chooser.html @@ -1,5 +1,3 @@ -{% load i18n %} -{% load l10n %} {% comment %} Either the chosen or unchosen div will be shown, depending on the presence of the 'blank' class on the container. @@ -8,7 +6,7 @@ when clicked. {% endcomment %} -
+
{% block chosen_state_view %}{% endblock %} diff --git a/wagtail/contrib/table_block/templates/table_block/widgets/table.html b/wagtail/contrib/table_block/templates/table_block/widgets/table.html index 3d3c6007e..96b59905e 100644 --- a/wagtail/contrib/table_block/templates/table_block/widgets/table.html +++ b/wagtail/contrib/table_block/templates/table_block/widgets/table.html @@ -1,24 +1,23 @@ {% load i18n %} -{% load l10n %}
- +
- +

{% trans 'Display the first row as a header.' %}


- +
- +

{% trans 'Display the first column as a header.' %}


-
+
{{ original_field_html }}