diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-01-21 18:36:42 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-01-21 18:59:42 +0100 |
commit | 967069814ff3ad1e2577ed242284d7b4343c09ca (patch) | |
tree | f0c743fe28de59a65e1be93e622bdf26e11e5d0a | |
parent | 1a27e3fda70bcd1cb0509c3d36e79553c4bc7cbe (diff) | |
download | Ishtar-967069814ff3ad1e2577ed242284d7b4343c09ca.tar.bz2 Ishtar-967069814ff3ad1e2577ed242284d7b4343c09ca.zip |
Fix archeaological site new window
-rw-r--r-- | archaeological_operations/urls.py | 4 | ||||
-rw-r--r-- | 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 <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 |