|
@ -38,7 +38,8 @@ class Command(BaseCommand): |
|
|
if not options['no_migrate']: |
|
|
if not options['no_migrate']: |
|
|
call_command('migrate', no_input=True) |
|
|
call_command('migrate', no_input=True) |
|
|
self.stdout.write('Vytvarim uzivatele "admin" (heslo "admin") a pseudo-nahodna data ...') |
|
|
self.stdout.write('Vytvarim uzivatele "admin" (heslo "admin") a pseudo-nahodna data ...') |
|
|
create_test_data(size=8) |
|
|
create_test_data(size=5) |
|
|
|
|
|
# menší počet ročníků, aby se zrychlilo generování dat a bylo dost úloh |
|
|
self.stdout.write('Vytvoreno {} uzivatelu, {} skol, {} resitelu, {} rocniku, {} cisel,' |
|
|
self.stdout.write('Vytvoreno {} uzivatelu, {} skol, {} resitelu, {} rocniku, {} cisel,' |
|
|
' {} problemu, {} reseni.'.format(User.objects.count(), Skola.objects.count(), |
|
|
' {} problemu, {} reseni.'.format(User.objects.count(), Skola.objects.count(), |
|
|
Resitel.objects.count(), Rocnik.objects.count(), Cislo.objects.count(), |
|
|
Resitel.objects.count(), Rocnik.objects.count(), Cislo.objects.count(), |
|
|