Skip to content

merge_querysets breaks annotations with DjangoFilterConnectionField #758

Closed
@jarcoal

Description

@jarcoal

We recently updated to v2.5 and have found that many of our connections that use DjangoFilterConnectionField no longer work as expected (aka the filters aren't applied).

After some digging it looks like any filter that uses annotations are having them stripped off by DjangoConnectionField.merge_querysets here.

Specifically it looks like PR #693 started this issue because before that merge_querysets wouldn't be called in many situations.

Thoughts? Is there a better way to go handling annotations or this is just a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions