D
D
dimas75252018-10-31 12:34:20
Django
dimas7525, 2018-10-31 12:34:20

django-orm. How to do a case insensitive search?

Relation.objects.filter(name=current_user.first_name, last_name=current_user.last_name,
                                           middle_name=current_user.middle_name):

Works case sensitive, how to make it case insensitive?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Segey K., 2018-10-31
@dimas7525

Right here

P
planc, 2018-10-31
@planc

https://docs.djangoproject.com/en/dev/ref/models/q...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question