Skip to content

Commit

Permalink
feat: add capability to add multiple product_sources
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Sep 26, 2024
1 parent 979775f commit fcd8490
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def get_products(self, product_type, product_source):
queryset = queryset.filter(type__slug=CourseType.BOOTCAMP_2U)

if product_source:
queryset = queryset.filter(product_source__slug=product_source)
queryset.filter(product_source__slug__in=product_source.split(','))

queryset = queryset.annotate(
num_orgs=Count('authoring_organizations')
Expand Down

0 comments on commit fcd8490

Please sign in to comment.