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

No support for is_null filter #4

Open
armonge opened this issue Mar 15, 2024 · 0 comments
Open

No support for is_null filter #4

armonge opened this issue Mar 15, 2024 · 0 comments

Comments

@armonge
Copy link

armonge commented Mar 15, 2024

Model.objects.filter(
    field__isnull=False,
)
  File ".venv/lib/python3.12/site-packages/django_mongodb/compiler.py", line 69, in as_operation
    mongo_where = self.build_mongo_filter(self.query.where)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.12/site-packages/django_mongodb/compiler.py", line 41, in build_mongo_filter
    return MongoWhereNode(filter_expr, self.mongo_meta)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.12/site-packages/django_mongodb/query.py", line 288, in __init__
    raise NotImplementedError(f"Node not implemented: {type(child)}")
NotImplementedError: Node not implemented: <class 'django.db.models.lookups.IsNull'>
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

1 participant