calendar update

This commit is contained in:
Lucie Galland 2021-11-03 14:33:39 +01:00
parent d7fd5e5537
commit a1a8a6d9aa

View file

@ -170,15 +170,16 @@ class Calendar(LoginRequiredMixin, TemplateView):
class Home(Calendar): class Home(Calendar):
lToday = datetime.now()
@property @property
def pYear(self): def pYear(self):
return self.lToday.year lToday = datetime.now()
return lToday.year
@property @property
def pMonth(self): def pMonth(self):
return self.lToday.month lToday = datetime.now()
return lToday.month
class ViewEvent(LoginRequiredMixin, TemplateView): class ViewEvent(LoginRequiredMixin, TemplateView):