From 8c6a09127e970e7a84e5a173c2c3a76029c7fdf5 Mon Sep 17 00:00:00 2001 From: Toksi Date: Tue, 11 Nov 2025 09:58:44 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D1=80=D0=B5=D0=B7=D1=83=D0=BB=D1=8C=D1=82=D0=B0?= =?UTF-8?q?=D1=82=20=D0=BF=D0=BE=D0=BB=D1=8F=20scored=5Fexpert=5Fid,=20?= =?UTF-8?q?=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=B2=D0=BE=D0=B7=D0=B2?= =?UTF-8?q?=D1=80=D0=B0=D1=89=D0=B0=D0=B5=D1=82=20=D0=BA=D0=BE=D1=80=D1=80?= =?UTF-8?q?=D0=B5=D0=BA=D1=82=D0=BD=D1=83=D1=8E=20=D0=B8=D0=BD=D1=84=D0=BE?= =?UTF-8?q?=D1=80=D0=BC=D0=B0=D1=86=D0=B8=D1=8E=20=D0=BE=20id=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB?= =?UTF-8?q?=D1=8F,=20=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=B2=D1=88=D0=B5?= =?UTF-8?q?=D0=B3=D0=BE=20=D0=BE=D1=86=D0=B5=D0=BD=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project_rates/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project_rates/views.py b/project_rates/views.py index 8f719f0a..e77e9103 100644 --- a/project_rates/views.py +++ b/project_rates/views.py @@ -100,7 +100,7 @@ def get_queryset(self) -> QuerySet[Project]: # `Count` the easiest way to check for rate exist (0 -> does not exist). scored_expert_subquery = ProjectScore.objects.filter( project=OuterRef("pk") - ).values("user__expert__id")[:1] + ).values("user_id")[:1] return Project.objects.filter(draft=False, id__in=projects_ids).annotate( scored=Count("scores"),