From a4ef28465f2bfdf37bae561a3a622331650abb9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Sat, 1 Oct 2022 23:28:16 +0200 Subject: [PATCH] Jo, tohle tedy nefunguje :( --- seminar/models/tvorba.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/seminar/models/tvorba.py b/seminar/models/tvorba.py index 2e68f74c..f3cbc4dc 100644 --- a/seminar/models/tvorba.py +++ b/seminar/models/tvorba.py @@ -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)