From 7cb74829ea296a23386eff50496c4d5223c79906 Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Fri, 19 Aug 2011 10:13:18 -0400 Subject: [PATCH] Added a check in migrate_app to see if the app is a string or not. --- categories/migration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/categories/migration.py b/categories/migration.py index 9d39ee2..dc69e70 100644 --- a/categories/migration.py +++ b/categories/migration.py @@ -11,8 +11,10 @@ def migrate_app(app, *args, **kwargs): Migrate all models of this app registered """ # pull the information from the registry + if not isinstance(app, basestring): + return fields = [fld for fld in field_registry.keys() if fld.startswith(app)] - + # call the south commands to add the fields/tables for fld in fields: app_name, model_name, field_name = fld.split('.')