0
0
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:
Karl Hobley 2015-02-06 10:39:04 +00:00
parent d0b0d57ca5
commit 50e4cdf8b8

View File

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