summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-03 19:15:13 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-03 19:15:13 +0200
commit3f18460f80c89d5de4420fbe53fb39991cd08105 (patch)
tree8cdcaf498db05da21634981c09108dede07c31ce /ishtar_common/wizards.py
parent3565d1fee6f675646f60c1690bb1c81549b227a9 (diff)
downloadIshtar-3f18460f80c89d5de4420fbe53fb39991cd08105.tar.bz2
Ishtar-3f18460f80c89d5de4420fbe53fb39991cd08105.zip
Fix find modify action (refs #3405)
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='/'):
"""