Browse Source

Fix clashes v *Node věcech

export_seznamu_prednasek
LEdoian 6 years ago
parent
commit
b678337955
  1. 2
      seminar/models.py

2
seminar/models.py

@ -1095,6 +1095,7 @@ class TreeNode(models.Model):
class Meta: class Meta:
abstract = True abstract = True
root = models.ForeignKey('self', root = models.ForeignKey('self',
related_name="potomci_set",
null = True, null = True,
blank = False, blank = False,
on_delete = models.SET_NULL, # Vrcholy s null kořenem jsou sirotci bez ročníku 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, on_delete=models.SET_NULL,
verbose_name="první potomek") verbose_name="první potomek")
succ = models.ForeignKey('self', succ = models.ForeignKey('self',
related_name="prev",
null = True, null = True,
blank = True, blank = True,
on_delete=models.SET_NULL, on_delete=models.SET_NULL,

Loading…
Cancel
Save