summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorSam Wenham <sam@wenhams.co.uk>2018-04-11 22:02:57 +0100
committerSam Wenham <sam@wenhams.co.uk>2018-04-11 22:02:57 +0100
commitffb5d7bdda5e35478a914ee822039f629b3af0fc (patch)
tree2cd893dd0bc7c99d41cb460f14d36f0c1e2e74ca /urls.py
parent242cf4741a945027fb43d3c6fb08922165c61bf0 (diff)
downloadtroggle-ffb5d7bdda5e35478a914ee822039f629b3af0fc.tar.gz
troggle-ffb5d7bdda5e35478a914ee822039f629b3af0fc.tar.bz2
troggle-ffb5d7bdda5e35478a914ee822039f629b3af0fc.zip
Upgrade to django 1.5, some functions have been changed
url in templates now requires quotes roung the first arg USE_TZ added
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/urls.py b/urls.py
index 48c9ea4..c26c4dd 100644
--- a/urls.py
+++ b/urls.py
@@ -6,9 +6,9 @@ from core.views_other import *
from core.views_caves import *
from core.views_survex import *
from core.models import *
-from django.views.generic.create_update import create_object
+from django.views.generic.edit import UpdateView
from django.contrib import admin
-from django.views.generic.list_detail import object_list
+from django.views.generic.list import ListView
from django.contrib import admin
admin.autodiscover()
@@ -30,7 +30,7 @@ actualurlpatterns = patterns('',
#url(r'^person/(\w+_\w+)$', views_logbooks.person, name="person"),
url(r'^expedition/(\d+)$', views_logbooks.expedition, name="expedition"),
- url(r'^expeditions/?$', object_list, {'queryset':Expedition.objects.all(),'template_name':'object_list.html'},name="expeditions"),
+ url(r'^expeditions/?$', ListView, {'queryset':Expedition.objects.all(),'template_name':'object_list.html'},name="expeditions"),
url(r'^personexpedition/(?P<first_name>[A-Z]*[a-z]*)[^a-zA-Z]*(?P<last_name>[A-Z]*[a-z]*)/(?P<year>\d+)/?$', views_logbooks.personexpedition, name="personexpedition"),
url(r'^logbookentry/(?P<date>.*)/(?P<slug>.*)/?$', views_logbooks.logbookentry,name="logbookentry"),
url(r'^newlogbookentry/(?P<expeditionyear>.*)$', views_logbooks.newLogbookEntry, name="newLogBookEntry"),