Fix clashes v *Node věcech
This commit is contained in:
parent
2321a529bc
commit
b678337955
1 changed files with 2 additions and 0 deletions
|
@ -1095,6 +1095,7 @@ class TreeNode(models.Model):
|
|||
class Meta:
|
||||
abstract = True
|
||||
root = models.ForeignKey('self',
|
||||
related_name="potomci_set",
|
||||
null = True,
|
||||
blank = False,
|
||||
on_delete = models.SET_NULL, # Vrcholy s null kořenem jsou sirotci bez ročníku
|
||||
|
@ -1105,6 +1106,7 @@ class TreeNode(models.Model):
|
|||
on_delete=models.SET_NULL,
|
||||
verbose_name="první potomek")
|
||||
succ = models.ForeignKey('self',
|
||||
related_name="prev",
|
||||
null = True,
|
||||
blank = True,
|
||||
on_delete=models.SET_NULL,
|
||||
|
|
Loading…
Reference in a new issue