Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

No support for is_null filter #4

@armonge

Description

@armonge
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'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions