Skip to content

Conversation

furious-luke
Copy link

In our projects we've found a need to inherit from
DjangoFilterConnectionField in order to customize the queryset. When
passing the queryset into "connection_resolver", an error was
raised about "get_queryset" not existing. This is due to the
assumption that the "base_manager" is always a manager. Using
"maybe_queryset" resolves the issue.

If there's a better way of doing any of this please let me know.

In our projects we've found a need to inherit from
DjangoFilterConnectionField in order to customize the queryset. When
passing the queryset into "connection_resolver", an error was
raised about "get_queryset" not existing. This is due to the
assumption that the "base_manager" is always a manager. Using
"maybe_queryset" resolves the issue.
@coveralls
Copy link

coveralls commented Oct 25, 2017

Coverage Status

Coverage increased (+0.007%) to 93.006% when pulling 9ef31d8 on ABASystems:master into 283bccf on graphql-python:master.

Combine create and update into a single mutation. This can be
disabled by returning None from `load_existing`.
@coveralls
Copy link

coveralls commented Oct 30, 2017

Coverage Status

Coverage decreased (-0.1%) to 92.85% when pulling 0b5f8e8 on ABASystems:master into 283bccf on graphql-python:master.

@furious-luke
Copy link
Author

Ah, I didn't mean for the second commit to end up here. I'll close this and open a new one.

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

Successfully merging this pull request may close these issues.

2 participants