Limite à 4 news sur la page d'accueil

This commit is contained in:
Evarin 2020-03-29 15:36:19 +02:00
parent fcf29fe6df
commit 8a27f70e89

View file

@ -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):