[Fixed]-Tastypie ignore case on filtering

1👍

You can call

http://127.0.0.1:8000/profile/?state__iexact=Alaska

Default lookup method is exact. iexact is a case-insensitive exact.

Filtering in Tastypie looks like filtering in Django ORM. Every field lookups works.

0👍

transform your filters into lowercase

your_filter.lower()

But, It only gonna work if you stored your values as lowercase in your DB.

👤levi

Leave a comment