title: How to solve cannot unpack non-iterable bool object error in Django?
body: <p>if i put below condition in my view file<br></p>
  <pre><code> id=request.POST['id'] #post data which i am sending from html file
   name=request.POST['name'] #post data which i am sending from html file
  
   if MyModel.objects.filter(id=id,name!=name).exists():
     print('data available')
   else:
     print('data is not available')
  </code></pre>
  <p>its showing below error<br></p>
  <pre><code>cannot unpack non-iterable bool object
  </code></pre>
  <p>if <code>request.POST['name']</code> is available in my requested id(<code>request.POST['id']</code>),then i want to print <code>print('data available')</code>. Otherwise i want to print <code>print('data is not available')</code> How to Do that?</p>