I am using a command like the foollwing to get all the distinct values of a column in a a table:
set(deg_course_cat.objects.values_list('degree_code', flat=True))
But the list also returns a ''
(empty slots) wherever they are present in the column. How do i give a command to get only the cells with values and not the NULL values?