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 | bf18599ed0c12aab12ee7572a32d759437eb57b5 (patch) | |
tree | b5c00931e900fc5a752e99738a482a75b8fca6fa /ishtar_common/wizards.py | |
parent | 2576e3eb2864adec4aeda645cac3026c9b3b7618 (diff) | |
download | Ishtar-bf18599ed0c12aab12ee7572a32d759437eb57b5.tar.bz2 Ishtar-bf18599ed0c12aab12ee7572a32d759437eb57b5.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 |