Commits

Andrew Godwin committed 771ee59

Code cleanup

Comments (0)

Files changed (1)

south/management/commands/startmigration.py

         
         # Fill out frozen model definitions
         for model, last_models in frozen_models.items():
-            # Non-proxies get a standard freeze
-            if not (hasattr(model._meta, "proxy") and model._meta.proxy):
-                all_models[model_key(model)] = prep_for_freeze(model, last_models)
-            # Proxy models' parents are frozen
-            else:
+            if hasattr(model._meta, "proxy") and model._meta.proxy:
                 model = model._meta.proxy_for_model
-                all_models[model_key(model)] = prep_for_freeze(model, last_models)
+            all_models[model_key(model)] = prep_for_freeze(model, last_models)
         
         # Do some model cleanup, and warnings
         for modelname, model in all_models.items():
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 ProjectModifiedEvent.java.
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.