Skip to content

Commit

Permalink
Added a check in migrate_app to see if the app is a string or not.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Oordt committed Aug 19, 2011
1 parent 309accf commit 7cb7482
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion categories/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
Expand Down

0 comments on commit 7cb7482

Please sign in to comment.