From f1b8a9b5adfcd7d2df28b72d1fe36bb88b2baff9 Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Wed, 8 Jan 2020 21:44:04 +0100 Subject: [PATCH] Models: str pro reseni podle noveho modelu. --- seminar/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/models.py b/seminar/models.py index fefd72d3..7a16bc96 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -888,7 +888,7 @@ class Reseni(SeminarModelBase): # Konfera def __str__(self): - return "{}: {}".format(self.resitel.osoba.plne_jmeno(), self.problem.nazev) + return "{}({}): {}({})".format(self.resitele.first(),len(self.resitele.all()), self.problem.first() ,len(self.problem.all())) # NOTE: Potenciální DB HOG (bez select_related) ## Pravdepodobne uz nebude potreba: