tags:

views:

15

answers:

1

For some reason duplicate values aren't eliminated.

records = Records.objects.all()
records2 = records.values_list('columna','columna').distinct()
print records2

I must be doing something stupid

A: 

My solution was to cast the values_list to a set (to remove duplicates) then back to a list

JPC