I seem to be encountering the same or similar issue. The distinct() method seems to have no affect on my queryset.
I am using PostgreSQL, and the django.contrib.gis.db models object. ipdb> p TruckLog.objects.values('vehicleid') [{'vehicleid': 80533}, {'vehicleid': 80480}, {'vehicleid': 80437}, {'vehicleid': 80437}, {'vehicleid': 80533}, {'vehicleid': 80480}, {'vehicleid': 80533}, {'vehicleid': 80533}, {'vehicleid': 80437}, {'vehicleid': 80533}, {'vehicleid': 80480}] ipdb> p TruckLog.objects.values('vehicleid').distinct() [{'vehicleid': 80533}, {'vehicleid': 80480}, {'vehicleid': 80437}, {'vehicleid': 80437}, {'vehicleid': 80533}, {'vehicleid': 80480}, {'vehicleid': 80533}, {'vehicleid': 80533}, {'vehicleid': 80437}, {'vehicleid': 80533}, {'vehicleid': 80480}] ipdb> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---