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

fix documents page listing

parent 72cd4eac
No related branches found
No related tags found
No related merge requests found
...@@ -340,7 +340,15 @@ class HomeDocumentsPage(Page): ...@@ -340,7 +340,15 @@ class HomeDocumentsPage(Page):
@property @property
def documents(self): def documents(self):
return HomeDocumentPage.objects.child_of(self).live().order_by("-date").all() documents = list(
HomeDocumentPage.objects.child_of(self).order_by("-date").live().all()
)
document_directories = list(
HomeDocumentsPage.objects.child_of(self).live().all()
)
return documents + document_directories
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