misc: make sure redirect URLs are real strings
This commit is contained in:
parent
2e54d9ce00
commit
896da2d087
|
@ -83,6 +83,11 @@ def perform_items(items, formdata, depth=20):
|
|||
# performs the items of the new status
|
||||
wf_status = formdata.get_status()
|
||||
url = perform_items(wf_status.items, formdata, depth=depth-1) or url
|
||||
if url:
|
||||
# hack around webtest as it checks type(url) is str and
|
||||
# this won't work on django safe strings (isinstance would work);
|
||||
# adding '' makes sure we get a "real" str object.
|
||||
url = url + ''
|
||||
return url
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue