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):
@property
def articles(self):
return HomeArticlePage.objects.live().all()
return HomeArticlePage.objects.live().order_by("-date").all()
class Meta:
verbose_name = "Rozcestník článků"
......@@ -202,7 +202,7 @@ class HomeEventsPage(RoutablePageMixin, Page):
@property
def events(self):
return HomeEventPage.objects.live().all()
return HomeEventPage.objects.live().order_by("-date").all()
class Meta:
verbose_name = "Rozcestník akcí"
......@@ -220,7 +220,7 @@ class HomeDocumentsPage(RoutablePageMixin, Page):
@property
def documents(self):
return HomeDocumentPage.objects.live().all()
return HomeDocumentPage.objects.live().order_by("-date").all()
class Meta:
verbose_name = "Rozcestník dokumentů"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment