[Django]-Django Crispy Forms rearrange layout and retain Bootstrap inline formatting?

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']
👤arocks

Leave a comment