Commits

Andrew Godwin committed 2e88bc1

Fix bug with adding too many dependencies for backwards().

  • Participants
  • Parent commits 0979413

Comments (0)

Files changed (1)

south/management/commands/startmigration.py

                     )
                 continue
             
-            # Add any dependencies
-            deps = field_dependencies(field, last_models)
-            deps.update(frozen_models)
-            frozen_models = deps
-            
             # Work out the definition
             triple = remove_useless_attributes(triple)
             field_definition = make_field_constructor(app, field, triple)
             
             print " - Deleted model '%s.%s'" % (model._meta.app_label,model._meta.object_name)
             
-            # Add the model's dependencies to the frozens
-            deps = model_dependencies(model, last_models)
-            deps.update(frozen_models)
-            frozen_models = deps
-            
             # Turn the (class, args, kwargs) format into a string
             fields = triples_to_defs(app, model, fields)