Skip to content

Trying to do a "join" on a ListField(ReferenceField(...)) doesn't raise an exception #1309

Open
@mlorant

Description

@mlorant

I have two models, let's say:

class Article(Document):
    title = StringField()
    tags = ListField(StringField())

class Blog(Document):
     articles = ListField(ReferenceField(Article))

I expected that Blog.objects.filter(articles__tags='lemon') would return the list of blogs that have at least one article using the tag lemon, but it just returns an empty set.

Is it the expected behaviour or a bug? Could it be supported?

Regards,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions