|
@ -1300,6 +1300,9 @@ class TreeNode(PolymorphicModel): |
|
|
self.aktualizuj_nazev() |
|
|
self.aktualizuj_nazev() |
|
|
super().save(*args, **kwargs) |
|
|
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 RocnikNode(TreeNode): |
|
|
class Meta: |
|
|
class Meta: |
|
|
db_table = 'seminar_nodes_rocnik' |
|
|
db_table = 'seminar_nodes_rocnik' |
|
|