diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-16 20:41:28 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-16 20:41:28 +0100 | 
| commit | e27a0ad3ad89f1e990d6f03f1e4486e3b85a5c77 (patch) | |
| tree | b78d3d870f2c4657136f6be4eb84b817fcefeb00 /ishtar_common/wizards.py | |
| parent | 8803f40c112760b5142c61858d7b854697048a61 (diff) | |
| download | Ishtar-e27a0ad3ad89f1e990d6f03f1e4486e3b85a5c77.tar.bz2 Ishtar-e27a0ad3ad89f1e990d6f03f1e4486e3b85a5c77.zip  | |
Fix container creation (refs #3415)
Diffstat (limited to 'ishtar_common/wizards.py')
| -rw-r--r-- | ishtar_common/wizards.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 4f0295421..ce1333c89 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -570,8 +570,8 @@ class Wizard(NamedUrlWizardView):              # remove non relevant fields              all_field_names = self.get_saved_model()._meta.get_all_field_names()              for k in dct.copy(): -                if (k.endswith('_id') and k[:-3] not in all_field_names) and \ -                        k not in all_field_names: +                if not (k.endswith('_id') and k[:-3] in all_field_names) \ +                        and k not in all_field_names:                      dct.pop(k)              saved_args = self.saved_args.copy()              for k in saved_args:  | 
