Skip to content

Commit

Permalink
fix: form field order
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Dec 19, 2023
1 parent bba943d commit 3eb308a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis_ontology/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, *args, **kwargs):

self.helper = FormHelper()
self.helper.form_tag = False
all_other_fields = [f.name for f in self._meta.model._meta.get_fields()]
all_other_fields = [f for f in self.fields if f not in text_details]
self.helper.layout = Layout(*all_other_fields, text_details)

def save(self, *args, **kwargs):
Expand Down

0 comments on commit 3eb308a

Please sign in to comment.