Osobu je potreba ulozit, nez se da priradit.
This commit is contained in:
		
							parent
							
								
									c8dadcd364
								
							
						
					
					
						commit
						6706bebdb7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -17,7 +17,6 @@ def spoj_k_organizatorum_osoby(apps, scema_editor): | |||
| 			osoba = resitele.first().osoba | ||||
| 		else: | ||||
| 			osoba = Osoba(user=user) | ||||
| 		org.osoba = osoba | ||||
| 
 | ||||
| 		# Přesun informací z organizátora do jeho osoby | ||||
| 		osoba.prezdivka = org.prezdivka if org.prezdivka is not None else '' | ||||
|  | @ -25,6 +24,7 @@ def spoj_k_organizatorum_osoby(apps, scema_editor): | |||
| 		 | ||||
| 		# Všechno uložit | ||||
| 		osoba.save() | ||||
| 		org.osoba = osoba | ||||
| 		org.save() | ||||
| 		 | ||||
| def fix_problem(apps, schema_editor): | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue