From 320c701d126adefa356502d78089847976a970eb Mon Sep 17 00:00:00 2001 From: Simone Federici Date: Sun, 15 Jun 2014 10:38:26 +0200 Subject: [PATCH] upgrade template to django 1.5 url syntax --- .../templates/generic_list_horizontal_subtemplate.html | 2 +- apps/common/templates/generic_list_subtemplate.html | 2 +- apps/documents/templates/document_print.html | 4 ++-- apps/main/templates/base.html | 6 +++--- apps/web_theme/templates/web_theme_base.html | 2 +- settings.py | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/common/templates/generic_list_horizontal_subtemplate.html b/apps/common/templates/generic_list_horizontal_subtemplate.html index 8b62536db7..625209595b 100644 --- a/apps/common/templates/generic_list_horizontal_subtemplate.html +++ b/apps/common/templates/generic_list_horizontal_subtemplate.html @@ -29,7 +29,7 @@
{% endif %} - {#
#} + {##} {% if object_list %} {% if multi_select or multi_select_as_buttons %} diff --git a/apps/common/templates/generic_list_subtemplate.html b/apps/common/templates/generic_list_subtemplate.html index 6d826f3f07..5ee8cc0ccf 100644 --- a/apps/common/templates/generic_list_subtemplate.html +++ b/apps/common/templates/generic_list_subtemplate.html @@ -30,7 +30,7 @@
{% endif %} - + {% if object_list %} {% if multi_select or multi_select_as_buttons %} diff --git a/apps/documents/templates/document_print.html b/apps/documents/templates/document_print.html index 35f08abaf8..66841fd6e6 100644 --- a/apps/documents/templates/document_print.html +++ b/apps/documents/templates/document_print.html @@ -50,8 +50,8 @@ {% for page in pages %} {#{% get_document_size object %}#}
- {# page_aspect %}width="97%"{% else %}height="97%"{% endif %} />#} - + {# page_aspect %}width="97%"{% else %}height="97%"{% endif %} />#} +
{% endfor %} diff --git a/apps/main/templates/base.html b/apps/main/templates/base.html index 4fb55da75d..91a10c831a 100644 --- a/apps/main/templates/base.html +++ b/apps/main/templates/base.html @@ -195,14 +195,14 @@ {% trans "Anonymous" %} {% else %} {{ user.get_full_name|default:user }} - + {% endif %} {% get_setting "MIDDLEWARE_CLASSES" as middleware_classes %} {% if "django.middleware.locale.LocaleMiddleware" in middleware_classes %}
  • - {% csrf_token %} + {% csrf_token %}