mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Fixes potential double imports in dev and test servers
This commit is contained in:
parent
8dda6ec87b
commit
dc99eac19c
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue