Skip to content
Snippets Groups Projects
Commit 3d6c52bc authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

fix ordering

parent 5f17b172
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,7 @@ class HomeArticlesPage(RoutablePageMixin, Page): ...@@ -184,7 +184,7 @@ class HomeArticlesPage(RoutablePageMixin, Page):
@property @property
def articles(self): def articles(self):
return HomeArticlePage.objects.live().all() return HomeArticlePage.objects.live().order_by("-date").all()
class Meta: class Meta:
verbose_name = "Rozcestník článků" verbose_name = "Rozcestník článků"
...@@ -202,7 +202,7 @@ class HomeEventsPage(RoutablePageMixin, Page): ...@@ -202,7 +202,7 @@ class HomeEventsPage(RoutablePageMixin, Page):
@property @property
def events(self): def events(self):
return HomeEventPage.objects.live().all() return HomeEventPage.objects.live().order_by("-date").all()
class Meta: class Meta:
verbose_name = "Rozcestník akcí" verbose_name = "Rozcestník akcí"
...@@ -220,7 +220,7 @@ class HomeDocumentsPage(RoutablePageMixin, Page): ...@@ -220,7 +220,7 @@ class HomeDocumentsPage(RoutablePageMixin, Page):
@property @property
def documents(self): def documents(self):
return HomeDocumentPage.objects.live().all() return HomeDocumentPage.objects.live().order_by("-date").all()
class Meta: class Meta:
verbose_name = "Rozcestník dokumentů" verbose_name = "Rozcestník dokumentů"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment