Skip to content

Commit

Permalink
Merge pull request #478 from elixir-luxembourg/fix-api-partners-cohorts
Browse files Browse the repository at this point in the history
api/cohorts and api/partners is using proper _is_published method
  • Loading branch information
neoflex authored Nov 3, 2023
2 parents e7d644e + 0e45f98 commit e7c2cb7
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 e7c2cb7

Please sign in to comment.