title: How do I do a not equal in Django queryset filtering?
body: <p>In Django model QuerySets, I see that there is a <code>__gt</code> and <code>__lt</code> for comparative values, but is there a <code>__ne</code> or <code>!=</code> (<strong>not equals</strong>)? I want to filter out using a not equals. For example, for</p>
  <pre><code>Model:
      bool a;
      int x;
  </code></pre>
  <p>I want to do</p>
  <pre><code>results = Model.objects.exclude(a=True, x!=5)
  </code></pre>
  <p>The <code>!=</code> is not correct syntax. I also tried <code>__ne</code>.</p>
  <p>I ended up using:</p>
  <pre><code>results = Model.objects.exclude(a=True, x__lt=5).exclude(a=True, x__gt=5)
  </code></pre>