prefill: don't convert value to string if it's already a string
This commit is contained in:
parent
d5171fa2c5
commit
92256ef02d
|
@ -458,7 +458,7 @@ class FormPage(Directory):
|
|||
form.get_widget('f%s' % k).clear_error()
|
||||
|
||||
if v is not None:
|
||||
if field.convert_value_to_str:
|
||||
if not isinstance(v, str) and field.convert_value_to_str:
|
||||
v = field.convert_value_to_str(v)
|
||||
form.get_widget('f%s' % k).set_value(v)
|
||||
req.form['f%s' % k] = v
|
||||
|
|
Loading…
Reference in New Issue