From c3247d7bce95436553e9d6482b8122e2d3e0ca98 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 5 Jan 2011 17:35:24 +0100 Subject: Small modification on database --- ishtar/furnitures/forms.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ishtar/furnitures/forms.py') diff --git a/ishtar/furnitures/forms.py b/ishtar/furnitures/forms.py index 588d3b2de..3753d5cda 100644 --- a/ishtar/furnitures/forms.py +++ b/ishtar/furnitures/forms.py @@ -83,6 +83,9 @@ class Wizard(NamedUrlSessionFormWizard): return context def get_formated_datas(self, forms): + """ + Get the data to present in the last page + """ datas = [] for form in forms: base_form = hasattr(form, 'forms') and form.forms[0] or form @@ -106,6 +109,9 @@ class Wizard(NamedUrlSessionFormWizard): return datas def done(self, request, storage, form_list, **kwargs): + """ + Save to the model + """ dct, m2m = {}, [] for form in form_list: base_form = hasattr(form, 'forms') and form.forms[0] or form -- cgit v1.2.3