1👍
Aside from validation, form.clean_data()
will perform some implicit conversions to Python data types. You can simply perform an explicit conversion by wrapping the returned value with the str()
or the unicode()
built-in. Afterwards, format the string using strip("(''),")
.
Source:stackexchange.com