diff --git a/sifrovacka/models.py b/sifrovacka/models.py index 26c6c008..6517c2e0 100644 --- a/sifrovacka/models.py +++ b/sifrovacka/models.py @@ -22,3 +22,6 @@ class SpravnaOdpoved(models.Model): odpoved = models.TextField(blank=False, null=False,) sifra = models.IntegerField(blank=False, null=False,) skryty_text = models.TextField(blank=False, null=False,) + + def __str__(self): + return f"{self.sifra}: {self.odpoved}"