Skip to content

Commit

Permalink
api/cohorts and api/partners is using proper _is_published method
Browse files Browse the repository at this point in the history
  • Loading branch information
vildead committed Oct 24, 2023
1 parent 346485a commit 0e45f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]
}
)
Expand All @@ -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)
]
}
)
Expand Down

0 comments on commit 0e45f98

Please sign in to comment.