Merge branch 'data_migrations' into vzhled2
This commit is contained in:
		
						commit
						d3af7d3134
					
				
					 3 changed files with 22 additions and 1 deletions
				
			
		|  | @ -8,7 +8,7 @@ from shutil import copytree | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def zkopiruj_fotky(apps, schema_editor): | def zkopiruj_fotky(apps, schema_editor): | ||||||
|     copytree("mamweb/static/images/header/", "media/header/", dirs_exist_ok=True) |     copytree("mamweb/static/images/header/", "media/header/") # FIXME: bylo tu dirs_exists_ok=True, nekompatibilní s Py 3.7 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Migration(migrations.Migration): | class Migration(migrations.Migration): | ||||||
|  |  | ||||||
							
								
								
									
										18
									
								
								seminar/migrations/0089_cislo_datum_preddeadline.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								seminar/migrations/0089_cislo_datum_preddeadline.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | ||||||
|  | # Generated by Django 2.2.16 on 2020-10-13 19:40 | ||||||
|  | 
 | ||||||
|  | from django.db import migrations, models | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class Migration(migrations.Migration): | ||||||
|  | 
 | ||||||
|  |     dependencies = [ | ||||||
|  |         ('seminar', '0088_perm_org_a_ucastnik'), | ||||||
|  |     ] | ||||||
|  | 
 | ||||||
|  |     operations = [ | ||||||
|  |         migrations.AddField( | ||||||
|  |             model_name='cislo', | ||||||
|  |             name='datum_preddeadline', | ||||||
|  |             field=models.DateField(blank=True, help_text='Datum pro příjem řešení, která se otisknou v dalším čísle', null=True, verbose_name='datum předdeadline'), | ||||||
|  |         ), | ||||||
|  |     ] | ||||||
|  | @ -443,6 +443,9 @@ class Cislo(SeminarModelBase): | ||||||
| 	datum_deadline = models.DateField('datum deadline', blank=True, null=True, | 	datum_deadline = models.DateField('datum deadline', blank=True, null=True, | ||||||
| 		help_text='Datum pro příjem řešení úloh zadaných v tomto čísle') | 		help_text='Datum pro příjem řešení úloh zadaných v tomto čísle') | ||||||
| 
 | 
 | ||||||
|  | 	datum_preddeadline = models.DateField('datum předdeadline', blank=True, null=True, | ||||||
|  | 		help_text='Datum pro příjem řešení, která se otisknou v dalším čísle') | ||||||
|  | 
 | ||||||
| 	datum_deadline_soustredeni = models.DateField( | 	datum_deadline_soustredeni = models.DateField( | ||||||
| 		'datum deadline soustředění', | 		'datum deadline soustředění', | ||||||
| 		blank=True, null=True, | 		blank=True, null=True, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Pavel Turinský
						Pavel Turinský