title: Django remove duplicates from queryset
body: <p>i want to remove duplicates in relative fields, my queryset example:</p>
  
  <pre><code>example = models.Object.objects.values('name', 'photo__name', 'url', 'photo__url').distinct()
  </code></pre>
  
  <p><code>if name == photo__name and url == photo_url</code> i need to delete one of them, how can i do this with Django ORM or i need to iterate through queryset?</p>