filter = models.Visits.objects.filter() rows = filter.values(user_id, user_name, visit_date).order_by('user_id').distinct()
출처:http://www.fun25.co.kr/blog/python-django-orm-distinct