1👍
✅
Check out the Layout Docs
You’ll basically want to create a custom template for your field and then use that.
Your code will be a bit like this:
form = SomeItemCreateForm(...)
form.helper.layout = Layout(
Field('latitude', template='custom_field_template.html'),
Field('longitude', template='custom_field_template.html')
)
I hope that helps.
Source:stackexchange.com