From f4e6bb90c3876eae29b92414c79f054475386f69 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 19 Feb 2020 15:08:15 -0500 Subject: [PATCH] Fix form field ordering; self.fields no longer an OrderedDict --- netbox/extras/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox/extras/forms.py b/netbox/extras/forms.py index d6a5406b7..b792ec484 100644 --- a/netbox/extras/forms.py +++ b/netbox/extras/forms.py @@ -467,7 +467,8 @@ class ScriptForm(BootstrapMixin, forms.Form): self.fields['_commit'].initial = False # 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 def requires_input(self):