Stringifikace hlasování o znalostech
This commit is contained in:
parent
6c35a5b6f3
commit
bcda95f0b3
1 changed files with 3 additions and 0 deletions
|
@ -96,3 +96,6 @@ class HlasovaniOZnalostech(models.Model):
|
|||
ucastnik = models.ForeignKey(Osoba, on_delete=models.CASCADE, blank=False, null=False)
|
||||
seznam = models.ForeignKey(Seznam, on_delete=models.SET_NULL, blank=True, null=True)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.ucastnik} dal {self.znalost} bodů {self.znalost} v seznamu {self.seznam}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue