summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index ce1333c89..87a126879 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -571,7 +571,10 @@ class Wizard(NamedUrlWizardView):
all_field_names = self.get_saved_model()._meta.get_all_field_names()
for k in dct.copy():
if not (k.endswith('_id') and k[:-3] in all_field_names) \
- and k not in all_field_names:
+ and k not in all_field_names and \
+ (not hasattr(self.get_saved_model(),
+ 'EXTRA_SAVED_KEYS') or
+ k not in self.get_saved_model().EXTRA_SAVED_KEYS):
dct.pop(k)
saved_args = self.saved_args.copy()
for k in saved_args:
@@ -687,7 +690,9 @@ class Wizard(NamedUrlWizardView):
return return_object and (obj, res) or res
def get_deleted(self, keys):
- """Get the deleted and non-deleted items in formsets"""
+ """
+ Get the deleted and non-deleted items in formsets
+ """
not_to_delete, to_delete = set(), set()
for key in keys:
items = key.split('-')