Permalink
Browse files

Use a SortedDict, this will make sure that the order will remain the

same in the admin views.
  • Loading branch information...
1 parent 9997a8f commit ef5b684e16660a2d025bb20ec052df645164a3a9 @gvangool gvangool committed Aug 27, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 datatrans/utils.py
View
@@ -2,6 +2,7 @@
from django.core.exceptions import ImproperlyConfigured
from django.db import models
from django.utils import translation
+from django.utils.datastructures import SortedDict
from datatrans.models import KeyValue, make_digest
@@ -19,7 +20,7 @@
{<class 'blog.models.Entry'>: {'body': <django.db.models.fields.TextField object at 0x911368c>,
'title': <django.db.models.fields.CharField object at 0x911346c>}}
'''
-REGISTRY = {}
+REGISTRY = SortedDict()
def get_registry():
return REGISTRY

0 comments on commit ef5b684

Please sign in to comment.