MCQs > IT & Programming > Django > Given a model named 'User' that contains a field named 'email', how do you perform a case-insensitive exact match for the email '[email protected]'?

Django MCQs

Given a model named 'User' that contains a field named 'email', how do you perform a case-insensitive exact match for the email '[email protected]'?

Answer

Correct Answer: User.objects.filter( email__iexact='[email protected]' )

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Django Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Django Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it