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