operator in django query

Solutions on MaxInterview for operator in django query by the best coders in the world

showing results for - "operator in django query"
Brayan
16 Jan 2018
1from django.db.models import Q
2
3Contact.objects.filter(Q(last_name__icontains=request.POST['query']) | 
4                               Q(first_name__icontains=request.POST['query']))
Kais
06 Aug 2020
1User.objects.filter(id__in=[1, 5, 34, 567, 229])