Models: shoď web, pokud někdo aktualizuje název obecnému TreeNode
This commit is contained in:
		
							parent
							
								
									e86c090ab8
								
							
						
					
					
						commit
						33fe0452b3
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -1300,6 +1300,9 @@ class TreeNode(PolymorphicModel): | |||
| 		self.aktualizuj_nazev() | ||||
| 		super().save(*args, **kwargs) | ||||
| 
 | ||||
| 	def aktualizuj_nazev(self): | ||||
| 		raise NotImplementedError("Pokus o aktualizaci názvu obecného TreeNode místo konkrétní instance") | ||||
| 
 | ||||
| class RocnikNode(TreeNode): | ||||
| 	class Meta: | ||||
| 		db_table = 'seminar_nodes_rocnik' | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Pavel 'LEdoian' Turinsky
						Pavel 'LEdoian' Turinsky