From 85318ac6661f464ac504712b1e4aee88c616fd8a Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sun, 10 Jul 2011 23:48:13 +0100 Subject: [PATCH] Add ability to views caves via their cave slug. Not recommended until links are fixed. --- urls.py | 1 + 1 file changed, 1 insertion(+) diff --git a/urls.py b/urls.py index 3dc4bc2..24df04b 100644 --- a/urls.py +++ b/urls.py @@ -44,6 +44,7 @@ actualurlpatterns = patterns('', url(r'^getLogBookEntries/(?P.*)', views_logbooks.get_logbook_entries, name = "get_logbook_entries"), url(r'^cave/(?P[^/]+)/?$', views_caves.cave, name="cave"), + url(r'^caveslug/([^/]+)/?$', views_caves.caveSlug, name="caveSlug"), url(r'^cavedescription/(?P[^/]+)/?$', views_caves.cave_description, name="cavedescription"), url(r'^cavedescription/?$', object_list, {'queryset':CaveDescription.objects.all(),'template_name':'object_list.html'}, name="cavedescriptions"), #url(r'^cavehref/(.+)$', views_caves.cave, name="cave"),url(r'cave'),