SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit a407a8c0 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

fix homepage publication ordering

parent a94ce864
No related branches found
No related tags found
No related merge requests found
......@@ -274,10 +274,8 @@ def portal_hx_recent_publications(request):
if specialty and specialty != "all":
filter_q &= Q(specialties__slug=specialty)
publications = (
publications.filter(filter_q)
.order_by("-publication_date")
.prefetch_related("in_issue__in_journal", "specialties", "collections__series")
publications = publications.filter(filter_q).prefetch_related(
"in_issue__in_journal", "specialties", "collections__series"
)
context = {"publications": publications[:5], "form": form}
return render(request, "scipost/portal/_hx_recent_publications.html", context)
......
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