summaryrefslogtreecommitdiff
path: root/ishtar/furnitures/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-01-05 17:35:24 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-01-05 17:35:24 +0100
commitc3247d7bce95436553e9d6482b8122e2d3e0ca98 (patch)
tree99290aa4bfe0bc941bbe13591fd53368f9f03676 /ishtar/furnitures/forms.py
parent4b03880352a2c91f3310682eb1576e3c63a97f12 (diff)
downloadIshtar-c3247d7bce95436553e9d6482b8122e2d3e0ca98.tar.bz2
Ishtar-c3247d7bce95436553e9d6482b8122e2d3e0ca98.zip
Small modification on database
Diffstat (limited to 'ishtar/furnitures/forms.py')
-rw-r--r--ishtar/furnitures/forms.py6
1 files changed, 6 insertions, 0 deletions
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