diff --git a/calendrier/views.py b/calendrier/views.py index f588232..26a4af9 100644 --- a/calendrier/views.py +++ b/calendrier/views.py @@ -72,8 +72,8 @@ class Calendar(LoginRequiredMixin, TemplateView): actu = Actu.objects.all() photo = Photo.objects.filter(cat="home").order_by("?").first() lToday = datetime.now() - lYear = int(lToday.year) - lMonth = int(lToday.month) + lYear = self.pYear + lMonth = self.pMonth lCalendarFromMonth = datetime(lYear, lMonth, 1) lCalendarToMonth = datetime(lYear, lMonth, monthrange(lYear, lMonth)[1]) lEvents = Event.objects.filter( @@ -172,6 +172,14 @@ class Calendar(LoginRequiredMixin, TemplateView): class Home(Calendar): lToday = datetime.now() + @property + def pYear(self): + return self.lToday.year + + @property + def pMonth(self): + return self.lToday.month + class ViewEvent(LoginRequiredMixin, TemplateView): template_name = "calendrier/view_event.html" diff --git a/instruments/static/documents/responsabilite_instru.pdf b/instruments/static/documents/responsabilite_instru.pdf new file mode 100644 index 0000000..83ea597 Binary files /dev/null and b/instruments/static/documents/responsabilite_instru.pdf differ diff --git a/instruments/templates/instruments/instru_liste.html b/instruments/templates/instruments/instru_liste.html index aecf723..d95a420 100644 --- a/instruments/templates/instruments/instru_liste.html +++ b/instruments/templates/instruments/instru_liste.html @@ -6,6 +6,7 @@