diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2013-07-30 12:08:59 +0100 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2013-07-30 12:08:59 +0100 |
| commit | 12e9804d163777af17cc2a3dfdfff49e5f750ebd (patch) | |
| tree | de245c81bba1b8cb8e4cc28b8abd60f8ade5b61e /django/core | |
| parent | 68e0a169c4f9fa7f8071e014b274fd59e970f9a3 (diff) | |
Rename allow_syncdb to allow_migrate
Diffstat (limited to 'django/core')
| -rw-r--r-- | django/core/management/commands/createcachetable.py | 2 | ||||
| -rw-r--r-- | django/core/management/commands/dumpdata.py | 2 | ||||
| -rw-r--r-- | django/core/management/commands/flush.py | 2 | ||||
| -rw-r--r-- | django/core/management/commands/loaddata.py | 2 | ||||
| -rw-r--r-- | django/core/management/commands/migrate.py | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/django/core/management/commands/createcachetable.py b/django/core/management/commands/createcachetable.py index d7ce3e93fd..27668f272d 100644 --- a/django/core/management/commands/createcachetable.py +++ b/django/core/management/commands/createcachetable.py @@ -24,7 +24,7 @@ class Command(LabelCommand): def handle_label(self, tablename, **options): db = options.get('database') cache = BaseDatabaseCache(tablename, {}) - if not router.allow_syncdb(db, cache.cache_model_class): + if not router.allow_migrate(db, cache.cache_model_class): return connection = connections[db] fields = ( diff --git a/django/core/management/commands/dumpdata.py b/django/core/management/commands/dumpdata.py index c5eb1b9a9e..5e440196fc 100644 --- a/django/core/management/commands/dumpdata.py +++ b/django/core/management/commands/dumpdata.py @@ -117,7 +117,7 @@ class Command(BaseCommand): for model in sort_dependencies(app_list.items()): if model in excluded_models: continue - if not model._meta.proxy and router.allow_syncdb(using, model): + if not model._meta.proxy and router.allow_migrate(using, model): if use_base_manager: objects = model._base_manager else: diff --git a/django/core/management/commands/flush.py b/django/core/management/commands/flush.py index 2ced3a2d60..a6ea45ce95 100644 --- a/django/core/management/commands/flush.py +++ b/django/core/management/commands/flush.py @@ -96,6 +96,6 @@ Are you sure you want to do this? for app in models.get_apps(): all_models.extend([ m for m in models.get_models(app, include_auto_created=True) - if router.allow_syncdb(database, m) + if router.allow_migrate(database, m) ]) emit_post_migrate_signal(set(all_models), verbosity, interactive, database) diff --git a/django/core/management/commands/loaddata.py b/django/core/management/commands/loaddata.py index 6856e85e45..802226f9d1 100644 --- a/django/core/management/commands/loaddata.py +++ b/django/core/management/commands/loaddata.py @@ -133,7 +133,7 @@ class Command(BaseCommand): for obj in objects: objects_in_fixture += 1 - if router.allow_syncdb(self.using, obj.object.__class__): + if router.allow_migrate(self.using, obj.object.__class__): loaded_objects_in_fixture += 1 self.models.add(obj.object.__class__) try: diff --git a/django/core/management/commands/migrate.py b/django/core/management/commands/migrate.py index cf0e40e6c7..17b5a7dfe9 100644 --- a/django/core/management/commands/migrate.py +++ b/django/core/management/commands/migrate.py @@ -149,7 +149,7 @@ class Command(BaseCommand): (app.__name__.split('.')[-2], [ m for m in models.get_models(app, include_auto_created=True) - if router.allow_syncdb(connection.alias, m) + if router.allow_migrate(connection.alias, m) ]) for app in models.get_apps() if app.__name__.split('.')[-2] in apps ] |
