From bf18599ed0c12aab12ee7572a32d759437eb57b5 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 16 Dec 2016 16:53:56 +0100 Subject: Add debug... --- ishtar_common/wizards.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ishtar_common/wizards.py') 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 -- cgit v1.2.3