Jolly
Jolly

Reputation: 314

Django puts AND clause to lookup "in"

Django 4.2 together with graphene-django filters is making my query return empty results

class ExampleFilterSet(FilterSet):    
    label__name__in = StringInFilter(method="filter_labels")

    class Meta:
        model = Example
        fields = {"users__email": ["in"]}

Ideally, here it should have been OR query - where users__email in ['[email protected]' , '[email protected]'] but on debugging its simply empties the cloned queryset

It was working well with django3.1 and graphene-django 2.9.9

Upvotes: 0

Views: 57

Answers (0)

Related Questions