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
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
My solution was to cast the values_list to a set (to remove duplicates) then back to a list