mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Fix form field ordering; self.fields no longer an OrderedDict
This commit is contained in:
parent
b7d41bc42c
commit
7b93155b06
@ -467,7 +467,8 @@ class ScriptForm(BootstrapMixin, forms.Form):
|
|||||||
self.fields['_commit'].initial = False
|
self.fields['_commit'].initial = False
|
||||||
|
|
||||||
# Move _commit to the end of the form
|
# Move _commit to the end of the form
|
||||||
self.fields.move_to_end('_commit', True)
|
commit = self.fields.pop('_commit')
|
||||||
|
self.fields['_commit'] = commit
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def requires_input(self):
|
def requires_input(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user