From cc6935f35d92e02fa205ebbb66972cf001d16a79 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sat, 30 Mar 2013 21:33:27 -0400 Subject: [PATCH] Prepare for anonymous map See https://github.com/yohanboniface/Leaflet.Storage/issues/44 --- umap/settings/base.py | 4 +++- umap/templates/leaflet_storage/map_list.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/umap/settings/base.py b/umap/settings/base.py index 7d011092..c413e932 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -26,7 +26,7 @@ LANGUAGES = ( ) # Make this unique, and don't share it with anybody. -SECRET_KEY = 'j6fly6aomgo6!3_$v#9kvhw-%wgs1@1l6x+4nr73tmn40=&_@&' +SECRET_KEY = '' INSTALLED_APPS = ( 'leaflet_storage', @@ -134,6 +134,8 @@ AUTHENTICATION_BACKENDS += ( #============================================================================== # Miscellaneous project settings #============================================================================== +LEAFLET_STORAGE_ALLOW_ANONYMOUS = False +SITE_URL = "http://umap.org" #============================================================================== # Third party app settings diff --git a/umap/templates/leaflet_storage/map_list.html b/umap/templates/leaflet_storage/map_list.html index 58d3bed8..0038e5f7 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 %}{% trans "Cured by" %} {{ map_inst.owner }}{% 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 %}