summaryrefslogtreecommitdiff
path: root/app/photos/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/photos/admin.py')
-rw-r--r--app/photos/admin.py13
1 files changed, 8 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):