1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

Deprecated SortedDict (replaced with collections.OrderedDict)

Thanks Loic Bistuer for the review.
This commit is contained in:
Curtis Maloney
2013-08-03 15:41:15 +10:00
committed by Tim Graham
parent b278f7478d
commit 07876cf02b
26 changed files with 139 additions and 107 deletions

View File

@@ -1,8 +1,8 @@
from collections import OrderedDict
from operator import attrgetter
from django.db import connections, transaction, IntegrityError
from django.db.models import signals, sql
from django.utils.datastructures import SortedDict
from django.utils import six
@@ -234,7 +234,7 @@ class Collector(object):
found = True
if not found:
return
self.data = SortedDict([(model, self.data[model])
self.data = OrderedDict([(model, self.data[model])
for model in sorted_models])
def delete(self):