how to checka query to return User whose first name starts with R or last name starts with D in django code example
Example: how to checka query to return User whose first name starts with R or last name starts with D in django
Entity.objects.filter(
Q(first_name__istartswith="Firstname") | Q(last_name__istartswith="Firstname") |
Q(first_name__istartswith="Lastname") | Q(last_name__istartswith="Lastname")
)