mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Replaced SortedDict with OrderedDict
This commit is contained in:
parent
d0b0d57ca5
commit
50e4cdf8b8
@ -1,5 +1,6 @@
|
||||
from collections import OrderedDict
|
||||
|
||||
import django.forms
|
||||
from django.utils.datastructures import SortedDict
|
||||
|
||||
|
||||
class BaseForm(django.forms.Form):
|
||||
@ -75,7 +76,7 @@ class FormBuilder(object):
|
||||
|
||||
@property
|
||||
def formfields(self):
|
||||
formfields = SortedDict()
|
||||
formfields = OrderedDict()
|
||||
|
||||
for field in self.fields:
|
||||
options = self.get_field_options(field)
|
||||
|
Loading…
Reference in New Issue
Block a user