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:
committed by
Tim Graham
parent
b278f7478d
commit
07876cf02b
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user