Oprava reverzní migrace vracející číslu verejna_vysledkovka
This commit is contained in:
		
							parent
							
								
									9bccb9d17d
								
							
						
					
					
						commit
						c04eb0eaa7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -8,7 +8,7 @@ def vrat_verejnost(apps, schema_editor): | |||
|     Cislo = apps.get_model('seminar', 'Cislo') | ||||
| 
 | ||||
|     for cislo in Cislo.objects.all(): | ||||
|         cislo.verejna_vysledkovka = any(cislo.deadline_v_cisle.filter(typ=Deadline.TYP_CISLA)) | ||||
|         cislo.verejna_vysledkovka = cislo.deadline_v_cisle.filter(typ=Deadline.TYP_CISLA, verejna_vysledkovka=True).exists() | ||||
|         cislo.save() | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue