diff options
| author | Loic Bistuer <loic.bistuer@gmail.com> | 2014-10-19 17:57:46 +0700 |
|---|---|---|
| committer | Loic Bistuer <loic.bistuer@gmail.com> | 2014-10-19 18:00:53 +0700 |
| commit | ec8a2e3b0787a3027cd0a0954a8637fc9bd6a5f3 (patch) | |
| tree | 26246ae8d71aa9a05abec664cc4454d73ed1011a | |
| parent | c213a1887e9acd3c25ea535b82915ad22e1edc7d (diff) | |
Prevented syncdb from calling system checks multiple times. Refs #23650.
| -rw-r--r-- | django/core/management/commands/syncdb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/management/commands/syncdb.py b/django/core/management/commands/syncdb.py index b89ad62c3e..27424aff54 100644 --- a/django/core/management/commands/syncdb.py +++ b/django/core/management/commands/syncdb.py @@ -22,7 +22,7 @@ class Command(BaseCommand): def handle(self, **options): warnings.warn("The syncdb command will be removed in Django 1.9", RemovedInDjango19Warning) - call_command("migrate", **options) + call_command("migrate", skip_checks=True, **options) try: apps.get_model('auth', 'Permission') @@ -41,5 +41,5 @@ class Command(BaseCommand): confirm = input('Please enter either "yes" or "no": ') continue if confirm == 'yes': - call_command("createsuperuser", interactive=True, database=options['database']) + call_command("createsuperuser", interactive=True, database=options['database'], skip_checks=True) break |
