Jo, tohle tedy nefunguje :(

This commit is contained in:
Jonas Havelka 2022-10-01 23:28:16 +02:00
parent 894ba3128d
commit a4ef28465f

View file

@ -369,12 +369,6 @@ class Deadline(SeminarModelBase):
def __str__(self):
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)