63👍
✅
Just use iexact:
User.objects.filter(email__iexact='email@email.com')
Case-insensitive exact match. If the value provided for comparison is None, it will be interpreted as an SQL NULL (see isnull for more details).
- [Django]-What does it mean to normalize an email address?
- [Django]-Django: Set foreign key using integer?
- [Django]-Django unit tests without a db
Source:stackexchange.com