From 0e45f98eed663656b2d9046eda9c75bec106802f Mon Sep 17 00:00:00 2001 From: Vilem Ded Date: Tue, 24 Oct 2023 10:09:44 +0200 Subject: [PATCH] api/cohorts and api/partners is using proper _is_published method --- web/views/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/views/api.py b/web/views/api.py index 485953b6..40bc2a3e 100644 --- a/web/views/api.py +++ b/web/views/api.py @@ -115,7 +115,7 @@ def cohorts(request): return JsonResponse( { "results": [ - cohort.to_dict() for cohort in Cohort.objects.filter(is_published=True) + cohort.to_dict() for cohort in Cohort.objects.filter(_is_published=True) ] } ) @@ -128,7 +128,7 @@ def partners(request): { "results": [ partner.to_dict() - for partner in Partner.objects.filter(is_published=True) + for partner in Partner.objects.filter(_is_published=True) ] } )