if i put below condition in my view file
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')
its showing below error
cannot unpack non-iterable bool object
if request.POST['name']
is available in my requested id(request.POST['id']
),then i want to print print('data available')
. Otherwise i want to print print('data is not available')
How to Do that?