From cc6935f35d92e02fa205ebbb66972cf001d16a79 Mon Sep 17 00:00:00 2001
From: Yohan Boniface <yb@enix.org>
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 7d01109..c413e93 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=&amp;_@&amp;'
+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 58d3bed..0038e5f 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 %}
 <div class="col _35">
     {% map_fragment map_inst %}
-    <div class="tintbox"><strong>{{ map_inst.name }}</strong> — {% if map_inst.description %}«{{ map_inst.description }}» {% endif %}<em>{% trans "Cured by" %} <a href="{% url user_maps map_inst.owner.username %}">{{ map_inst.owner }}</a></em> — <a href="{{ map_inst.get_absolute_url }}">{% trans "See this map!" %}</a></div>
+    <div class="tintbox"><strong>{{ map_inst.name }}</strong> — {% if map_inst.description %}«{{ map_inst.description }}» {% endif %}<em>{% if map_inst.owner %}{% trans "Cured by" %} <a href="{% url user_maps map_inst.owner.username %}">{{ map_inst.owner }}</a></em>{% endif %} — <a href="{{ map_inst.get_absolute_url }}">{% trans "See this map!" %}</a></div>
 </div>
 {% endfor %}
 {% if maps.has_next %}
-- 
GitLab