georgemarshall / django-cryptography

Easily encrypt data in Django
https://django-cryptography.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
371 stars 69 forks source link

Ordering in Model not working #83

Open htrampe opened 1 year ago

htrampe commented 1 year ago

Hi! I'am using some crypto-fields on different models. But if i try something like this... ordering = ["short"] ... in the Meta-Area of my Model, it does not order on the encrypted data. Why? That would be very helpful. Thx!

jdabtieu commented 1 year ago

Doing

ClassName.objects.filter(param=something).order_by('param')

also does not work