diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-05 20:35:49 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-05 20:35:49 +0100 |
commit | 029897aa96825357c5eb9d24e199d5447656900a (patch) | |
tree | 3ca814f017ff29ae4353423b748234aacb11e770 /archaeological_warehouse/views.py | |
parent | 4a7346cf762de22ab5bffefb3a194550430aa0d1 (diff) | |
download | Ishtar-029897aa96825357c5eb9d24e199d5447656900a.tar.bz2 Ishtar-029897aa96825357c5eb9d24e199d5447656900a.zip |
Fix reset wizards
Diffstat (limited to 'archaeological_warehouse/views.py')
-rw-r--r-- | archaeological_warehouse/views.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/archaeological_warehouse/views.py b/archaeological_warehouse/views.py index 60d31c09d..f33991d8b 100644 --- a/archaeological_warehouse/views.py +++ b/archaeological_warehouse/views.py @@ -183,3 +183,16 @@ warehouse_packaging_wizard = ItemSourceWizard.as_view([ ('final-warehouse_packaging', FinalForm)], url_name='warehouse_packaging',) """ + + +def reset_wizards(request): + for wizard_class, url_name in ( + (PackagingWizard, 'warehouse_packaging'), + (WarehouseWizard, 'warehouse_creation'), + (WarehouseModificationWizard, 'warehouse_modification'), + (WarehouseDeletionWizard, 'warehouse_deletion'), + (ContainerWizard, 'container_creation'), + (ContainerModificationWizard, 'container_modification'), + (ContainerDeletionWizard, 'container_deletion'), + ): + wizard_class.session_reset(request, url_name) |