summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/photos/admin.py13
-rw-r--r--app/projects/urls.py1
2 files changed, 9 insertions, 5 deletions
diff --git a/app/photos/admin.py b/app/photos/admin.py
index 8b1d723..dbcca64 100644
--- a/app/photos/admin.py
+++ b/app/photos/admin.py
@@ -130,13 +130,16 @@ class PhotoGalleryAdmin(OSMGeoAdmin):
)
}),
)
+
def get_urls(self):
urls = super(PhotoGalleryAdmin, self).get_urls()
- custom_urls = patterns('',
- url(r'^upload_zip/$',
- self.admin_site.admin_view(self.upload_zip),
- name='upload_zip')
- )
+ custom_urls = [
+ url(
+ r'^upload_zip/$',
+ self.admin_site.admin_view(self.upload_zip),
+ name='upload_zip'
+ )
+ ]
return custom_urls + urls
def upload_zip(self, request):
diff --git a/app/projects/urls.py b/app/projects/urls.py
index 97a7129..8e56b16 100644
--- a/app/projects/urls.py
+++ b/app/projects/urls.py
@@ -4,6 +4,7 @@ from projects.models.base import Project
from . import views
+app_name = "project"
urlpatterns = [
url(