Browse Source

Seskupovat jen podle čísla?

middleware_test
Jonas Havelka 3 years ago
parent
commit
3a381968a8
  1. 2
      korektury/models.py

2
korektury/models.py

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

Loading…
Cancel
Save