Potlaceny vypis cisla a cisla nezadane ulohy
Nezadane ulohy nemaji cislo ani poradove cislo
This commit is contained in:
parent
d175db8ca8
commit
8a9304c72c
1 changed files with 6 additions and 5 deletions
|
@ -454,11 +454,12 @@ class Problem(SeminarModelBase):
|
|||
return force_unicode(u'%s' % (self.nazev, ))
|
||||
|
||||
def kod_v_rocniku(self):
|
||||
if self.typ == self.TYP_ULOHA:
|
||||
return force_unicode(u"%s.u%s" % (self.cislo_zadani.cislo, self.kod,))
|
||||
if self.typ == self.TYP_TEMA:
|
||||
return force_unicode(u"t%s" % (self.kod,))
|
||||
return ''
|
||||
if self.stav == 'zadany':
|
||||
if self.typ == self.TYP_ULOHA:
|
||||
return force_unicode(u"%s.u%s" % (self.cislo_zadani.cislo, self.kod,))
|
||||
if self.typ == self.TYP_TEMA:
|
||||
return force_unicode(u"t%s" % (self.kod,))
|
||||
return ' Není zadaný '
|
||||
|
||||
def nazev_typu(self):
|
||||
return dict(self.TYP_CHOICES)[self.typ]
|
||||
|
|
Loading…
Reference in a new issue