testdata.py: opraveny chyby
This commit is contained in:
		
							parent
							
								
									500258c16a
								
							
						
					
					
						commit
						b440cb680a
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -23,11 +23,11 @@ class Command(BaseCommand): | |||
|         if os.path.exists(dbfile): | ||||
|             os.rename(dbfile, dbfile + '.old') | ||||
|             self.stderr.write('Stara databaze prejmenovana na "%s"' % (dbfile + '.old')) | ||||
|         call_command('migrate', noinput=True) | ||||
|         call_command('migrate', no_input=True) | ||||
|         self.stdout.write('Vytvarim uzivatele "admin" (heslo "admin") a pseudo-nahodna data ...') | ||||
|         create_test_data(size=8) | ||||
|         self.stdout.write('Vytvoreno %d uzivatelu, %d skol, %d resitelu, %d rocniku, %d cisel,'  | ||||
|                ' %d problemu, %d reseni.'.format(User.objects.count(), Skola.objects.count(),  | ||||
|         self.stdout.write('Vytvoreno {} uzivatelu, {} skol, {} resitelu, {} rocniku, {} cisel,'  | ||||
|                ' {} problemu, {} reseni.'.format(User.objects.count(), Skola.objects.count(),  | ||||
|                     Resitel.objects.count(), Rocnik.objects.count(), Cislo.objects.count(),  | ||||
|                     Problem.objects.count(), Reseni.objects.count())) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Tomáš Domes
						Tomáš Domes