Skip to content

Filtering not supported? #44

@mflaxman

Description

@mflaxman

I was getting some strange behavior on my site and traced the problem back to this:

In [1]: from customers.models import *
In [2]: foo = KYCUser.objects.filter(ss_num__isnull=False).last()
In [3]: print foo.ss_num
Out[3]: u'123456789'
In [4]: KYCUser.objects.filter(ss_num='123456789')
Out[4]: []

ss_num looks like this in the model defintion:

ss_num = EncryptedCharField(max_length=10, blank=True, null=True, db_index=True)   

Does this library not support filtering? That'd be understandable, but if so it should make that clear in the docs and not fail silently.

Thanks for putting this out there!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions