summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-04-22 03:26:53 +0100
committerPhilip Sargent <philip.sargent@gmail.com>2023-04-22 03:26:53 +0100
commit94b8b357fb646a0d777d092655c07fb8f467e2cd (patch)
tree0af9e8ec8e56549dd3fd353a25f3f1a22d33aafe /urls.py
parent2ed66fe3d0c24ba993425947ee7cd0986ecba83c (diff)
downloadtroggle-94b8b357fb646a0d777d092655c07fb8f467e2cd.tar.gz
troggle-94b8b357fb646a0d777d092655c07fb8f467e2cd.tar.bz2
troggle-94b8b357fb646a0d777d092655c07fb8f467e2cd.zip
Fix entrance edit too, saving slug now
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index c06b94a..88c3578 100644
--- a/urls.py
+++ b/urls.py
@@ -143,7 +143,7 @@ trogglepatterns = [
# Edit caves and entrances
re_path(r'^(?P<path>.*)/(?P<slug>[^/]+)_cave_edit/$', edit_cave, name="edit_cave"), # edit_cave needed by cave.html template for url matching
- re_path(r'^(?P<path>.*)/(?P<caveslug>[^/]+):(?P<slug>[^:]+)_entrance_edit', edit_entrance, name = "editentrance"), #edit existing entrance
+ re_path(r'^(?P<path>.*)/(?P<caveslug>[^/]+):(?P<entslug>[^:]+)_entrance_edit', edit_entrance, name = "editentrance"), #edit existing entrance
re_path(r'^(?P<path>.*)/(?P<caveslug>[^/]+)_entrance_new$', edit_entrance, name = "newentrance"), # new entrance for a cave
re_path(r'^(.*)_edit$', editexpopage, name="editexpopage"),