Seskupovat jen podle čísla?

This commit is contained in:
Jonas Havelka 2021-09-25 15:37:38 +02:00
parent ea108626af
commit 3a381968a8

View file

@ -121,7 +121,7 @@ class KorekturovanePDF(models.Model):
def cislo_a_tema(self): def cislo_a_tema(self):
nazev_split = self.nazev.split() nazev_split = self.nazev.split()
try: try:
return nazev_split[0] + " " + nazev_split[2] return nazev_split[0] # + " " + nazev_split[2]
except IndexError: except IndexError:
return self.nazev return self.nazev