Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lookup type isnull does not work #6

Closed
nmqanh opened this issue Oct 29, 2014 · 2 comments
Closed

lookup type isnull does not work #6

nmqanh opened this issue Oct 29, 2014 · 2 comments

Comments

@nmqanh
Copy link

nmqanh commented Oct 29, 2014

I tried with

class ContainerChainedFilter(ChainedFilterSet):
    estimate_time = AllLookupsFilter(name='estimate_time')
    step = AllLookupsFilter(name='step')

    class Meta:
        model = ContainerSession
        fields = ['estimate_time', 'step']

step work with step__gte, step__gt, step__lt, step__lte.... but not work with
step__isnull=True, step__isnull=False, step__isnull=1, step__isnull=0...
Every lookup type work except isnull

@Rigdon
Copy link

Rigdon commented Jan 1, 2015

Just wanted to leave a note that I've been experiencing this too. Haven't had time to really dig into it but I'll try soon.

@rpkilby
Copy link
Collaborator

rpkilby commented Oct 7, 2015

Was this fixed by 3706d2c?

rpkilby pushed a commit to rpkilby/django-rest-framework-filters that referenced this issue Nov 23, 2015
@rpkilby rpkilby mentioned this issue Jan 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants