Fix bugu u exportu: end-year = 'None'

This commit is contained in:
Tomas Gavenciak 2015-07-23 20:00:45 +02:00
parent f57cf71b14
commit 73a594512c

View file

@ -195,7 +195,7 @@ class Resitel(SeminarModelBase):
'gender': 'M' if self.pohlavi_muz else 'F', 'gender': 'M' if self.pohlavi_muz else 'F',
'born': self.datum_narozeni.isoformat() if self.datum_narozeni else '', 'born': self.datum_narozeni.isoformat() if self.datum_narozeni else '',
'email': self.email, 'email': self.email,
'end-year': self.rok_maturity, 'end-year': self.rok_maturity or '',
# TODO(gavento): Adresa skoly, kdyz preferuje zasilani tam? # TODO(gavento): Adresa skoly, kdyz preferuje zasilani tam?
'street': self.ulice, 'street': self.ulice,