title: Django - Comparing id of queryset with fetch object id
body: <p>I am learning django with practicing. I have one object. It has id, name, lastname. Also, I have one queryset. It has same attributes id,name, lastname. All I want is comparing id's. I can compare ids if they both are equal but my problem is if they both are not equal django gives me error like</p>
  <pre><code>matching query does not exist.
  </code></pre>
  <p>because I use filter function.</p>
  <p>I want to do this operation</p>
  <pre><code>            if icformkeyinput.filter(id=v['Id']):
              if icformkeyinput.filter(id!=v['Id']):
  </code></pre>
  <p>My problem is How can I use != operator?</p>
  <p>I want to do this because if there is unmatched id between icformkeyinput and v then add v to icformkeyinput.</p>