How to Search EncryptedCharField in Django

class Agents(models.Model):
first_name = EncryptedCharField(max_length=255, blank=True, null=True)
last_name = EncryptedCharField(max_length=255, blank=True, null=True)
email = EncryptedCharField(max_length=255, blank=True, null=True)

I am showing list of agents using Django rest API in the frontend using nextjs

If user want to search with first_name or email how can i send the result because we are using EncryptedCharField how would i match

Please help me

You are using EncryptedCharField i.e it will store Encrypted string to your table.
From where you are decrypting your fields like first_name, last_name, etc [Like from BE (Django) or FE (Next)].

I am decrypting my fields From backend
just i am using Agents.objects.filter()