For some reason duplicate values aren't eliminated.
开发者_如何学JAVArecords = 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
精彩评论