From fcd849018251990e31b94b737126f0e2f77ff5ce Mon Sep 17 00:00:00 2001 From: Muhammad Afaq Shuaib Date: Thu, 26 Sep 2024 12:30:23 +0500 Subject: [PATCH] feat: add capability to add multiple product_sources --- .../management/commands/populate_product_catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course_discovery/apps/course_metadata/management/commands/populate_product_catalog.py b/course_discovery/apps/course_metadata/management/commands/populate_product_catalog.py index 205e5fbb58..9a3dd79a11 100644 --- a/course_discovery/apps/course_metadata/management/commands/populate_product_catalog.py +++ b/course_discovery/apps/course_metadata/management/commands/populate_product_catalog.py @@ -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')