From 33fe0452b34956ab84d4f30399cecff934435cc5 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 16 Jan 2020 01:26:46 +0100 Subject: [PATCH] =?UTF-8?q?Models:=20sho=C4=8F=20web,=20pokud=20n=C4=9Bkdo?= =?UTF-8?q?=20aktualizuje=20n=C3=A1zev=20obecn=C3=A9mu=20TreeNode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seminar/models.py b/seminar/models.py index e65dcb67..95441384 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -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'