Fixes potential double imports in dev and test servers

This commit is contained in:
Corey Oordt 2015-05-13 16:20:58 -05:00
parent 8dda6ec87b
commit dc99eac19c

View file

@ -35,11 +35,14 @@ def drop_field(app_name, model_name, field_name):
schema_editor.remove_field(model, field)
def migrate_app(sender, app_config, verbosity=False, *args, **kwargs):
def migrate_app(sender, *args, **kwargs):
"""
Migrate all models of this app registered
"""
from .registration import registry
if 'app_config' not in kwargs:
return
app_config = kwargs['app_config']
app_name = app_config.label