From 6cca7cf2d508cac6e8056a79f9b191bca206ed08 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 21 Jan 2015 18:36:42 +0100 Subject: Fix archeaological site new window --- archaeological_operations/urls.py | 4 ++-- archaeological_operations/views.py | 2 +- 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 +# Copyright (C) 2010-2015 Étienne Loks # 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.+)?/$', + url(r'new-archaeologicalsite/(?:(?P[^/]+)/)?(?:(?P[^/]+)/)?$', '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 +# Copyright (C) 2010-2015 Étienne Loks # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as -- cgit v1.2.3