Browse Source

Jo, tohle tedy nefunguje :(

pull/3/head
Jonas Havelka 2 years ago
parent
commit
a4ef28465f
  1. 6
      seminar/models/tvorba.py

6
seminar/models/tvorba.py

@ -369,12 +369,6 @@ class Deadline(SeminarModelBase):
def __str__(self): def __str__(self):
return self.CHOICES_MAP[self.typ] + " " + str(self.cislo) return self.CHOICES_MAP[self.typ] + " " + str(self.cislo)
def next(self):
return Deadline.objects.filter(gt=self).first()
def previous(self):
return Deadline.objects.filter(lt=self).last()
@reversion.register(ignore_duplicates=True) @reversion.register(ignore_duplicates=True)

Loading…
Cancel
Save