Author: mtredinnick
Date: 2009-03-03 22:53:15 -0600 (Tue, 03 Mar 2009)
New Revision: 9964

Modified:
   django/trunk/django/core/management/commands/dumpdata.py
Log:
Fixed #10381 -- Fixed some a machine-dependent test failure after r9921.

The patch is from Russell, but I'm applying it because I want my tests to pass
again (and he doesn't see the failure).

Modified: django/trunk/django/core/management/commands/dumpdata.py
===================================================================
--- django/trunk/django/core/management/commands/dumpdata.py    2009-03-03 
22:10:15 UTC (rev 9963)
+++ django/trunk/django/core/management/commands/dumpdata.py    2009-03-04 
04:53:15 UTC (rev 9964)
@@ -1,6 +1,7 @@
 from django.core.exceptions import ImproperlyConfigured
 from django.core.management.base import BaseCommand, CommandError
 from django.core import serializers
+from django.utils.datastructures import SortedDict
 
 from optparse import make_option
 
@@ -27,9 +28,9 @@
         excluded_apps = [get_app(app_label) for app_label in exclude]
 
         if len(app_labels) == 0:
-            app_list = dict([(app, None) for app in get_apps() if app not in 
excluded_apps])
+            app_list = SortedDict([(app, None) for app in get_apps() if app 
not in excluded_apps])
         else:
-            app_list = {}
+            app_list = SortedDict()
             for label in app_labels:
                 try:
                     app_label, model_label = label.split('.')


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to