diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-11-22 12:52:11 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-11-28 11:40:17 +0100 |
commit | 22fc81db0fb937e8b89af5f72892c9a3cc5cc1ba (patch) | |
tree | 470cd5417c723494ea9edfdc12578d765b5a655d /archaeological_warehouse/wizards.py | |
parent | c05a8c1acd021a5b99830080d55465d685878923 (diff) | |
download | Ishtar-22fc81db0fb937e8b89af5f72892c9a3cc5cc1ba.tar.bz2 Ishtar-22fc81db0fb937e8b89af5f72892c9a3cc5cc1ba.zip |
Fix packaging creation and treatment tests
Diffstat (limited to 'archaeological_warehouse/wizards.py')
-rw-r--r-- | archaeological_warehouse/wizards.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_warehouse/wizards.py b/archaeological_warehouse/wizards.py index a0d46e892..03258f1e2 100644 --- a/archaeological_warehouse/wizards.py +++ b/archaeological_warehouse/wizards.py @@ -60,6 +60,8 @@ class PackagingWizard(TreatmentWizard): items = dct.pop('basket') else: dct.pop('basket') + if 'treatment_type_list' in dct: + dct.pop('treatment_type_list') treatment = Treatment(**dct) extra_args_for_new = {"container": dct['container']} treatment.save(items=items, user=self.request.user, |