1
0
mirror of https://github.com/django/django.git synced 2024-11-18 07:26:04 +00:00

Prevented syncdb from calling system checks multiple times. Refs #23650.

This commit is contained in:
Loic Bistuer 2014-10-19 17:57:46 +07:00
parent c213a1887e
commit ec8a2e3b07

View File

@ -22,7 +22,7 @@ class Command(BaseCommand):
def handle(self, **options): def handle(self, **options):
warnings.warn("The syncdb command will be removed in Django 1.9", RemovedInDjango19Warning) 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: try:
apps.get_model('auth', 'Permission') apps.get_model('auth', 'Permission')
@ -41,5 +41,5 @@ class Command(BaseCommand):
confirm = input('Please enter either "yes" or "no": ') confirm = input('Please enter either "yes" or "no": ')
continue continue
if confirm == 'yes': if confirm == 'yes':
call_command("createsuperuser", interactive=True, database=options['database']) call_command("createsuperuser", interactive=True, database=options['database'], skip_checks=True)
break break