summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_operations/urls.py4
-rw-r--r--archaeological_operations/views.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_operations/urls.py b/archaeological_operations/urls.py
index 17f232455..fcd85efb5 100644
--- a/archaeological_operations/urls.py
+++ b/archaeological_operations/urls.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2010-2013 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2010-2015 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -99,7 +99,7 @@ urlpatterns += patterns('archaeological_operations.views',
url(r'autocomplete-archaeologicalsite/$',
'autocomplete_archaeologicalsite',
name='autocomplete-archaeologicalsite'),
- url(r'new-archaeologicalsite/(?P<parent_name>.+)?/$',
+ url(r'new-archaeologicalsite/(?:(?P<parent_name>[^/]+)/)?(?:(?P<limits>[^/]+)/)?$',
'new_archaeologicalsite', name='new-archaeologicalsite'),
url(r'autocomplete-patriarche/$', 'autocomplete_patriarche',
name='autocomplete-patriarche'),
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py
index ba66a724a..b4e9d2a2f 100644
--- a/archaeological_operations/views.py
+++ b/archaeological_operations/views.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2010-2014 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2010-2015 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as