summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-12-27 17:53:15 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-12-27 17:55:37 +0100
commit9616de5a2c949bedde51e00e828478896bfe51bb (patch)
tree9ba5641662d7abeb2c690595f3255eb9df32ccc1 /archaeological_operations
parent2b2293c6e7d6f1211d512665f088dedde0df5428 (diff)
downloadIshtar-9616de5a2c949bedde51e00e828478896bfe51bb.tar.bz2
Ishtar-9616de5a2c949bedde51e00e828478896bfe51bb.zip
Display current item window after creation and modification (refs #1574)
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/urls.py2
-rw-r--r--archaeological_operations/wizards.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_operations/urls.py b/archaeological_operations/urls.py
index 5f52254bd..e0daa8590 100644
--- a/archaeological_operations/urls.py
+++ b/archaeological_operations/urls.py
@@ -68,7 +68,7 @@ urlpatterns += patterns('archaeological_operations.views',
'get_available_operation_code', name='get_available_operation_code'),
url(r'revert-operation/(?P<pk>.+)/(?P<date>.+)$',
'revert_operation', name='revert-operation'),
- url(r'show-operation/(?P<pk>.+)?/(?P<type>.+)?$',
+ url(r'show-operation(?:/(?P<pk>.+))?/(?P<type>.+)?$',
'show_operation', name='show-operation'),
url(r'show-historized-operation/(?P<pk>.+)?/(?P<date>.+)?$',
'show_operation', name='show-historized-operation'),
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py
index a61452733..d816cf9aa 100644
--- a/archaeological_operations/wizards.py
+++ b/archaeological_operations/wizards.py
@@ -25,6 +25,7 @@ from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils.translation import ugettext_lazy as _
+from ishtar_common.forms import reverse_lazy
from ishtar_common.wizards import Wizard, ClosingWizard, DeletionWizard, \
SourceWizard
import models
@@ -34,6 +35,7 @@ class OperationWizard(Wizard):
model = models.Operation
object_parcel_type = 'operation'
parcel_step_key = 'parcelsgeneral-'
+ wizard_done_window = reverse_lazy('show-operation')
def get_template_names(self):
templates = super(OperationWizard, self).get_template_names()