fix: exisitng query is not working in django30. Update the query. It seems like django30 issue.
fix: exisitng query is not working in django30. Update the query. It seems like django30 issue.

BOM-2771

edx/course-discovery,edx/course-discovery,edx/course-discovery,edx/course-discovery