Fix form field ordering; self.fields no longer an OrderedDict

This commit is contained in:
Jeremy Stretch 2020-02-19 15:08:15 -05:00
parent ca65956d8d
commit f4e6bb90c3

View File

@ -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):