From 0042ed862c53b894a9dfd6ae4be3e2b2b6b166b1 Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Thu, 2 Sep 2021 14:47:13 +0200 Subject: [PATCH] =?UTF-8?q?Opraveny=20vadn=C3=A9=20odkazy=20v=20adminu=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/seminar/models.py b/seminar/models.py index 3b7a1976..7855b040 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -44,15 +44,15 @@ class SeminarModelBase(models.Model): def verejne(self): return False - def get_absolute_url(self): - return self.verejne_url() # TODO "absolute" + # def get_absolute_url(self): + # return self.verejne_url() # TODO "absolute" def admin_url(self): model_name = self.__class__.__name__.lower() return reverse('admin:seminar_{}_change'.format(model_name), args=(self.id, )) - def verejne_url(self): - return None + # def verejne_url(self): + # return None @reversion.register(ignore_duplicates=True) class Osoba(SeminarModelBase): @@ -642,7 +642,7 @@ class Cislo(SeminarModelBase): def posli_cislo_mailem(self): # parametry e-mailu - odkaz = self.get_absolute_url() + odkaz = self.verejne_url() poslat_z_mailu = 'zadani@mam.mff.cuni.cz' predmet = 'Vyšlo číslo {}'.format(self.kod())