summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
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