summaryrefslogtreecommitdiff
path: root/archaeological_finds
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
commit0bbb58bdf1cad93846bec23d2481e5ffffa818f8 (patch)
tree9ba5641662d7abeb2c690595f3255eb9df32ccc1 /archaeological_finds
parente027edce6edc7d8ba5a7dfc14069a95e531da2e1 (diff)
downloadIshtar-0bbb58bdf1cad93846bec23d2481e5ffffa818f8.tar.bz2
Ishtar-0bbb58bdf1cad93846bec23d2481e5ffffa818f8.zip
Display current item window after creation and modification (refs #1574)
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/urls.py2
-rw-r--r--archaeological_finds/wizards.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_finds/urls.py b/archaeological_finds/urls.py
index eb1c8fcaf..8a3a2fdb6 100644
--- a/archaeological_finds/urls.py
+++ b/archaeological_finds/urls.py
@@ -47,7 +47,7 @@ urlpatterns += patterns('archaeological_finds.views',
name='get-find-full', kwargs={'full':True}),
url(r'get-findsource/(?P<type>.+)?$',
'get_findsource', name='get-findsource'),
- url(r'show-find/(?P<pk>.+)?/(?P<type>.+)?$', 'show_find',
+ url(r'show-find(?:/(?P<pk>.+))?/(?P<type>.+)?$', 'show_find',
name='show-find'),
url(r'show-historized-find/(?P<pk>.+)?/(?P<date>.+)?$',
'show_find', name='show-historized-find'),
diff --git a/archaeological_finds/wizards.py b/archaeological_finds/wizards.py
index e5024f10e..0a7ddc284 100644
--- a/archaeological_finds/wizards.py
+++ b/archaeological_finds/wizards.py
@@ -25,12 +25,14 @@ from django.template import RequestContext
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
+from ishtar_common.forms import reverse_lazy
from ishtar_common.wizards import Wizard, DeletionWizard, SourceWizard
import models
class FindWizard(Wizard):
file_storage = default_storage
model = models.Find
+ wizard_done_window = reverse_lazy('show-find')
def get_current_contextrecord(self):
step = self.steps.current