2009
11.20

Long time no post and this isn’t a particularly interest post either, but if you ever need to change the order of a predefined form classes fields, this could be helpful. I hacked around a bit on this one and could only find one answer and that was to remove the form field completely and than reinsert it where I wanted it. If anyone has a better, cleaner option – please leave a comment.

form = FormClass()
some_field = form.fields['some_field']
del form.fields['some_field']
form.fields.insert(2, 'some_field', some_field)