diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-16 16:53:56 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-16 16:53:56 +0100 |
commit | 4107a0ae31f7ff727a75a7d3fe0b6839fcf0d7bc (patch) | |
tree | b5c00931e900fc5a752e99738a482a75b8fca6fa /ishtar_common/wizards.py | |
parent | 6bf0e0b32beec9ad3e20277b962a49ee47777ce3 (diff) | |
download | Ishtar-4107a0ae31f7ff727a75a7d3fe0b6839fcf0d7bc.tar.bz2 Ishtar-4107a0ae31f7ff727a75a7d3fe0b6839fcf0d7bc.zip |
Add debug...
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r-- | ishtar_common/wizards.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 2fbe30e0e..6439a85c0 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -562,15 +562,18 @@ class Wizard(NamedUrlWizardView): for k in saved_args: if k in dct: saved_args[k] = dct.pop(k) + print(dct) obj = self.get_saved_model()(**dct) if hasattr(obj, 'pre_save'): obj.pre_save() try: obj.full_clean() except ValidationError as e: + print(e) logger.warning(unicode(e)) return self.render(form_list[-1]) obj.save(**saved_args) + print("hop") for k in adds: getattr(obj, k).add(adds[k]) # necessary to manage interaction between models like |