SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 6bf78f07 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Correct bug in newsitem list

parent 6dcc7383
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,7 @@ def search(request):
def index(request):
'''Main page.'''
context = {
'latest_newsitem': NewsItem.objects.all().order_by('-date').first(),
'latest_newsitem': NewsItem.objects.filter(on_homepage=True).order_by('-date').first(),
'submissions': Submission.objects.public().order_by('-submission_date')[:3],
'journals': Journal.objects.order_by('name'),
'publications': Publication.objects.published().order_by('-publication_date',
......
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