Browse Source

inicial_krestni: uprava, abychom umeli resitele s vice jmeny

export_seznamu_prednasek
Anet 6 years ago
parent
commit
425a4a2d44
  1. 3
      seminar/models.py

3
seminar/models.py

@ -124,7 +124,8 @@ class Osoba(SeminarModelBase):
return force_unicode('%s %s' % (self.jmeno, self.prijmeni))
def inicial_krestni(self):
return force_unicode('%s.' % (self.jmeno[0]))
jmena = self.jmeno.split()
return " ".join(['{}.'.format(jmeno[0]) for jmeno in jmena])
def __str__(self):
return force_unicode("Osoba({})".format(self.plne_jmeno()))

Loading…
Cancel
Save