diff options
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 |
commit | e9599cb39d8bd7c5e9664173b6ee2d338196a29c (patch) | |
tree | 05aa3c5cd4aadfa246e5a4f273da1ab552b19f09 | |
parent | e93ae57d3c88662a6f9ec83cfad90fb17ea4a98e (diff) | |
download | Ishtar-e9599cb39d8bd7c5e9664173b6ee2d338196a29c.tar.bz2 Ishtar-e9599cb39d8bd7c5e9664173b6ee2d338196a29c.zip |
Find wizard: fix modify shortcut when using warehouse module
-rw-r--r-- | archaeological_finds/views.py | 5 |
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'})) |