From f2dd3eb2c814bfbc44a15d9683a1c0eab8eb4dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Tue, 6 Jun 2023 11:40:50 +0200 Subject: [PATCH] Tweak selected publications listing on homepage --- scipost_django/scipost/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scipost_django/scipost/views.py b/scipost_django/scipost/views.py index d4bdb2e78..26ac38be5 100644 --- a/scipost_django/scipost/views.py +++ b/scipost_django/scipost/views.py @@ -200,10 +200,11 @@ def portal_hx_home(request): "news_items": news_items, "latest_blogpost": latest_blogpost, "publications": Publication.objects.published() + .exclude(doi_label__contains="Proc") .order_by("-publication_date", "-paper_nr") .prefetch_related( "in_issue__in_journal", "specialties", "collection_set__series" - )[:3], + )[:5], } return render(request, "scipost/portal/_hx_home.html", context) -- GitLab