We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3d9c8f + 95231ab commit 4ae0d80Copy full SHA for 4ae0d80
opentech/public/projects/models.py
@@ -165,7 +165,7 @@ class ProjectIndexPage(BasePage):
165
166
def get_context(self, request, *args, **kwargs):
167
context = super().get_context(request, *args, **kwargs)
168
- subpages = ProjectPage.objects.descendant_of(self).live().public().select_related('icon')
+ subpages = ProjectPage.objects.descendant_of(self).live().public().select_related('icon').order_by('-first_published_at')
169
per_page = settings.DEFAULT_PER_PAGE
170
page_number = request.GET.get('page')
171
paginator = Paginator(subpages, per_page)
0 commit comments