Commits

Andrew Godwin committed 4ce9086

#203: Sort model output for better diffability

Comments (0)

Files changed (1)

south/management/commands/startmigration.py

 def pprint_frozen_models(models):
     return "{\n        %s\n    }" % ",\n        ".join([
         "%r: %s" % (name, pprint_fields(fields))
-        for name, fields in models.items()
+        for name, fields in sorted(models.items())
     ])
 
 def pprint_fields(fields):