title: How to avoid duplicate values while retrieving from database in django
body: <p>I need to avoid duplicate values while retrieving from database in django. I am having the result dictionary as list. </p>
  
  <pre><code> queryset = [{'name':'shankar','Age':'24'},{'name':'Manoj','Age':'26'},   {'name':'shankar','Age':'25'}]
  </code></pre>
  
  <p>I need to display the value in dropdown list as the value <strong>shankar and Manoj</strong>. I am retrieving the value like the query below</p>
  
  <pre><code> queryset = Books.objects.all()
  </code></pre>
  
  <p>Now i want to avoid the duplicate value while displaying dropdown list in template page.</p>
  
  <p>Thanks in advance.</p>