1👍
✅
You’re using the replace
method wrong: if you want to convert from a space to an underscore, you should put them in the other way round:
joint = joint.replace(' ', '_')
Also note that this code should really be in the form’s clean_place
method, so that the data is converted by the form itself.
Source:stackexchange.com