From 29b5361545415a3a7ddceff911994f4c3c811cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 16 Oct 2023 20:01:41 +0200 Subject: [PATCH] =?UTF-8?q?(sifrovacka)=20stringifikace=20spr=C3=A1vn?= =?UTF-8?q?=C3=BDch=20odpov=C4=9Bd=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sifrovacka/models.py | 3 +++ 1 file changed, 3 insertions(+) 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}"