From 8a27f70e890daf1917537e3a56ce52cbb527f05f Mon Sep 17 00:00:00 2001 From: Evarin Date: Sun, 29 Mar 2020 15:36:19 +0200 Subject: [PATCH] =?UTF-8?q?Limite=20=C3=A0=204=20news=20sur=20la=20page=20?= =?UTF-8?q?d'accueil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestioncof/cms/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gestioncof/cms/models.py b/gestioncof/cms/models.py index 3bb757b7..1c88cccf 100644 --- a/gestioncof/cms/models.py +++ b/gestioncof/cms/models.py @@ -31,6 +31,10 @@ class COFRootPage(RoutablePageMixin, Page, COFActuIndexMixin): verbose_name = "Racine site du COF" verbose_name_plural = "Racines site du COF" + @property + def actus(self): + return super().actus[:4] + # Mini calendrier @route(r"^calendar/(\d+)/(\d+)/$") def calendar(self, request, year, month):