[Fixed]-How to filter objects by ignoring upper and lower case letter django

25👍

Blog.objects.get(name__iexact=receiver_company_name)

you can use iexact which takes all the arguments ignoring upper and lower case

or you can use

Entry.objects.filter(name__istartswith=receiver_company_name)

Leave a comment