4👍
✅
Have you tried using the fields
attribute? The generated Form class will have a form field in the order specified in the fields attribute.
class MyEntryForm(ModelForm):
class Meta:
model = "mymodel"
fields = ['field1', 'field3', 'field2']
Source:stackexchange.com