Limite à 4 news sur la page d'accueil
This commit is contained in:
parent
fcf29fe6df
commit
8a27f70e89
1 changed files with 4 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue