summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 61923d920..8d787d733 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -51,10 +51,16 @@ class MultiValueDict(BaseMultiValueDict):
v = v()
if type(v) in (list, tuple) and len(v) > 1:
v = ",".join(v)
- else:
+ elif type(v) not in (int, unicode):
v = super(MultiValueDict, self).get(*args, **kwargs)
return v
+ def getlist(self, *args, **kwargs):
+ lst = super(MultiValueDict, self).getlist(*args, **kwargs)
+ if type(lst) not in (tuple, list):
+ lst = [lst]
+ return lst
+
def check_rights(rights=[], redirect_url='/'):
"""