Skip to content

Commit

Permalink
Use True value for isnull field
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTillema authored May 27, 2020
1 parent 90a8ed5 commit a76f308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advanced_filters/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _build_query_dict(self, formdata=None):
formdata = self.cleaned_data
key = "{field}__{operator}".format(**formdata)
if formdata['operator'] == "isnull":
return {key: None}
return {key: True}
elif formdata['operator'] == "istrue":
return {formdata['field']: True}
elif formdata['operator'] == "isfalse":
Expand Down

0 comments on commit a76f308

Please sign in to comment.