I\'m trying to use an OR operator in the Django filter() function. Right now I have
OR
filter()
contactlist = Contact.objects.filter(last_name_
from django.db.models import Q Contact.objects.filter(Q(last_name__icontains=request.POST['query']) | Q(first_name__icontains=request.POST['query']))