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'