prefill: don't convert value to string if it's already a string

This commit is contained in:
Thomas NOËL 2012-09-05 16:43:06 +02:00
parent d5171fa2c5
commit 92256ef02d
1 changed files with 1 additions and 1 deletions

View File

@ -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