2👍
✅
Try to convert your variable name_kv
to string type using str(name_kv)
.
Update your query like Partner.objects.filter(name__iexact = str(name_kv)).count()
.
You are getting error because variable containing byte type data so converting byte data to string type may solve your problem.
Source:stackexchange.com