summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-29 09:44:31 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-29 09:44:31 +0200
commite9599cb39d8bd7c5e9664173b6ee2d338196a29c (patch)
tree05aa3c5cd4aadfa246e5a4f273da1ab552b19f09
parente93ae57d3c88662a6f9ec83cfad90fb17ea4a98e (diff)
downloadIshtar-e9599cb39d8bd7c5e9664173b6ee2d338196a29c.tar.bz2
Ishtar-e9599cb39d8bd7c5e9664173b6ee2d338196a29c.zip
Find wizard: fix modify shortcut when using warehouse module
-rw-r--r--archaeological_finds/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py
index 4874abefb..828f9801d 100644
--- a/archaeological_finds/views.py
+++ b/archaeological_finds/views.py
@@ -170,8 +170,11 @@ find_modification_wizard = FindModificationWizard.as_view([
def find_modify(request, pk):
find_modification_wizard(request)
+ key = 'selec-find_modification'
+ if get_current_profile().warehouse:
+ key = 'selecw-find_modification'
FindModificationWizard.session_set_value(
- request, 'selec-find_modification', 'pk', pk, reset=True)
+ request, key, 'pk', pk, reset=True)
return redirect(
reverse('find_modification',
kwargs={'step': 'selecrecord-find_modification'}))