Thursday, October 22, 2020

Django-does-not-call-get-prep-value-while-using-lookups

I have an custom model field in which i have implemented cryptography. I get prefect results when I don't use lookups for filtering data i.e. it calls get_prep_value() But when I filter data using lookups like startswith or endswith. it does not calls get_prep_value().How to solve this problem?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1e88e279-96f5-471d-9c6b-1f1be212276an%40googlegroups.com.

No comments:

Post a Comment