From fb18bdeb5e4f4da8cd89059247dafedd3ca6fed0 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 14 May 2013 12:07:58 +0200 Subject: [PATCH] Prepare for django 1.5 --- requirements.pip | 2 +- umap/templates/leaflet_storage/map_list.html | 2 +- .../templates/leaflet_storage/map_update_settings.html | 2 +- .../leaflet_storage/map_update_tilelayers.html | 2 +- umap/templates/registration/login.html | 1 - umap/templates/umap/content.html | 2 +- umap/templates/umap/navigation.html | 10 +++++----- umap/templates/umap/search_bar.html | 2 +- 8 files changed, 11 insertions(+), 12 deletions(-) diff --git a/requirements.pip b/requirements.pip index 27f6a271..89970f57 100644 --- a/requirements.pip +++ b/requirements.pip @@ -1,4 +1,4 @@ -Django==1.4.5 +Django==1.5.1 South==0.7.6 django-leaflet-storage==0.2.0 django_compressor==1.2 diff --git a/umap/templates/leaflet_storage/map_list.html b/umap/templates/leaflet_storage/map_list.html index 0038e5f7..9412738a 100644 --- a/umap/templates/leaflet_storage/map_list.html +++ b/umap/templates/leaflet_storage/map_list.html @@ -3,7 +3,7 @@ {% for map_inst in maps %}
{% map_fragment map_inst %} -
{{ map_inst.name }} — {% if map_inst.description %}«{{ map_inst.description }}» {% endif %}{% if map_inst.owner %}{% trans "Cured by" %} {{ map_inst.owner }}{% endif %} — {% trans "See this map!" %}
+
{{ map_inst.name }} — {% if map_inst.description %}«{{ map_inst.description }}» {% endif %}{% if map_inst.owner %}{% trans "Cured by" %} {{ map_inst.owner }}{% endif %} — {% trans "See this map!" %}
{% endfor %} {% if maps.has_next %} diff --git a/umap/templates/leaflet_storage/map_update_settings.html b/umap/templates/leaflet_storage/map_update_settings.html index d5716547..8c8078e0 100644 --- a/umap/templates/leaflet_storage/map_update_settings.html +++ b/umap/templates/leaflet_storage/map_update_settings.html @@ -1,6 +1,6 @@ {% load umap_tags i18n %}

{% trans "Map settings" %}

-
+ {% csrf_token %} {% for field in form %}
diff --git a/umap/templates/leaflet_storage/map_update_tilelayers.html b/umap/templates/leaflet_storage/map_update_tilelayers.html index c96689c7..a3185d35 100644 --- a/umap/templates/leaflet_storage/map_update_tilelayers.html +++ b/umap/templates/leaflet_storage/map_update_tilelayers.html @@ -1,6 +1,6 @@ {% load leaflet_storage_tags i18n %}

{% trans "Choose your tilelayer" %}

- + {% csrf_token %} {% for tilelayer in tilelayers %}
diff --git a/umap/templates/registration/login.html b/umap/templates/registration/login.html index b818aa68..9093435f 100644 --- a/umap/templates/registration/login.html +++ b/umap/templates/registration/login.html @@ -1,5 +1,4 @@ {% load i18n %} -{% load url from future %}
{% trans "Please choose a provider" %}
diff --git a/umap/templates/umap/content.html b/umap/templates/umap/content.html index 8168c5f6..0ea6f098 100644 --- a/umap/templates/umap/content.html +++ b/umap/templates/umap/content.html @@ -21,7 +21,7 @@ {% block content %}
- +
diff --git a/umap/templates/umap/navigation.html b/umap/templates/umap/navigation.html index 7b35a737..7412bf78 100644 --- a/umap/templates/umap/navigation.html +++ b/umap/templates/umap/navigation.html @@ -9,14 +9,14 @@
@@ -24,7 +24,7 @@
  • - + {% trans "Create a map" %}
  • diff --git a/umap/templates/umap/search_bar.html b/umap/templates/umap/search_bar.html index b640432e..3da61d5f 100644 --- a/umap/templates/umap/search_bar.html +++ b/umap/templates/umap/search_bar.html @@ -1,7 +1,7 @@ {% load i18n %}
    - +