Working with forms

You have a model named Info that contains a field called email. You now want to perform a case-insensitive exact match for the email

Which of the following lines of code will help you achieve this?

  1. Info.objects.filter( email__icontains=’’)
  2. Info.objects.filter( email__exact=’’)
  3. Info.objects.filter( email__iexact=’’)
  4. Info.objects.filter( email__matches=’’)
Previous PostNext Post

Related Posts