Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
540 B
20 lines
540 B
from django.db import models
|
|
|
|
from seminar.models import treenode as tm
|
|
from odevzdavatko.models import Reseni
|
|
|
|
class ReseniNode(tm.TreeNode):
|
|
class Meta:
|
|
db_table = 'seminar_nodes_otistene_reseni'
|
|
verbose_name = 'Otištěné řešení (Node)'
|
|
verbose_name_plural = 'Otištěná řešení (Node)'
|
|
reseni = models.ForeignKey(Reseni,
|
|
on_delete=models.PROTECT,
|
|
verbose_name = 'reseni')
|
|
|
|
def aktualizuj_nazev(self):
|
|
self.nazev = "ReseniNode: "+str(self.reseni)
|
|
|
|
def getOdkazStr(self):
|
|
return str(self.reseni)
|
|
|
|
|