Card.objects.filter(name__icontains=query)
i
means the operator performs a case-insenstive lookup.
(so hello would match both hello and Hello)