I solved it like this:
MyClass.objects.filter(name__iexact=my_parameter)
There is even a way to use it for substring search:
MyClass.objects.filter(name__icontains=my_parameter)
There's a link to the documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With