Andrew Godwin committed 2e88bc1

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

Comments (0)

Files changed (1)


-            # 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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.