Is there a simple way to remove duplicates in the following basic query:
email_list = Emails.objects.order_by(\'email\')
I tried using
You can chain .distinct() on the end of your queryset to filter duplicates. Check out: http://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.distinct
.distinct()