title: Django Queryset ORM issue with string
body: <p>I try compare string from AJAX Request with data( name ) at my Database, but my queryset don't working:</p>
  
  <pre><code>def create_name(request):
      if request.method == 'POST':
          name = request.POST['name']
          for i in Name.objects.all():
              if i.name != name:
                  Name.objects.create(
                      name=name,
                  )
                  return HttpResponse(status=200)
  </code></pre>
  
  <p>Console:</p>
  
  <pre><code>In [3]: for e in Name.objects.all()
      ...:     print(e.name)
  Michael
  Jack
  Chris
  </code></pre>
  
  <p>Comparing don't working and name will storing at my DB. </p>
  
  <p>Name should be unique.
  Thanks in advance!</p>