django-pgcrypto icon indicating copy to clipboard operation
django-pgcrypto copied to clipboard

__in filtering broken?

Open ckcollab opened this issue 2 years ago • 0 comments

Hey there!

Thanks so much for releasing/maintaining this package, so far it's worked well for us. We're running into a tiny problem at the moment, it seems like we can't filter based on __in=[...] but we can filter with a normal lookup.

This works, account_number is encrypted:

Account.objects.filter(account_number=account_number).exists()

This does not:

Account.objects.filter(account_number__in=[account_number]).exists()

Is this intentional? I can't see any other issues reporting this, maybe we're not supposed to be using array filters with this package?

Appreciate any help, Merry Christmas! Eric

ckcollab avatar Dec 21 '22 21:12 ckcollab