From e5e9d55aa9f1581bd4393732b9473cf78d158055 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Tue, 24 Sep 2024 15:38:27 +0200 Subject: [PATCH] filter report metadata list to those published --- scipost_django/journals/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scipost_django/journals/views.py b/scipost_django/journals/views.py index ae622c961..98184c03e 100644 --- a/scipost_django/journals/views.py +++ b/scipost_django/journals/views.py @@ -52,6 +52,7 @@ from django.shortcuts import get_object_or_404, get_list_or_404, render, redirec from dal import autocomplete from .constants import ( + PUBLICATION_PUBLISHED, STATUS_DRAFT, ISSUES_AND_VOLUMES, ISSUES_ONLY, @@ -1897,7 +1898,8 @@ def manage_report_metadata(request) -> HttpResponse: Publication.objects.filter( accepted_submission__thread_hash=OuterRef( "submission__thread_hash" - ) + ), + status=PUBLICATION_PUBLISHED, ) ), successful_deposit=Exists( -- GitLab