models.py: $(class) je potřeba u abstraktní třídy v related name.
This commit is contained in:
		
							parent
							
								
									171d1f8f37
								
							
						
					
					
						commit
						910e34a515
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -607,7 +607,7 @@ class Problem(SeminarModelBase,PolymorphicModel): | |||
| 
 | ||||
| 	# Problém má podproblémy | ||||
| 	nadproblem = models.ForeignKey('self', verbose_name='nadřazený problém', | ||||
| 		related_name='podproblem', null=True, blank=True, | ||||
| 		related_name='podproblem_%(class)s', null=True, blank=True, | ||||
| 		on_delete=models.SET_NULL) | ||||
| 
 | ||||
| 	STAV_NAVRH = 'navrh' | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Anet
						Anet