I have used django to develop a web app. I want to get the distinct "title" form the queryset get by filter.
But I use mysql so could not pass "title" to distict. How could I filter the queryset with the distinct "title"?
query_set = CourseInfo.objects.filter(discipline_id=id).distinct('title')
return render(request, 'main.html',
context={'query_set':query_set})
I get error for this in mysql as it may only used in postgresql `