Skip to content

Fix infinite recursion when sublassing DjangoFilterConnectionField #325

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

Merged
merged 1 commit into from
Nov 14, 2017

Conversation

urbandove
Copy link
Contributor

Issue was caused by #224
if a class is subclassing DjangoFilterConnectionField and a queryset is returned from resolve_schema_field the super(cls,cls) refers back to DjangoFilterConnectionField and has an infinite recursion.
I've subclassed DjangoFilterConnectionField to add orderby capabilities and it started erroring out because of infinite recursions
possibly a better fix would be
queryset = DjangoFilterConnectionField.merge_querysets(default_queryset, queryset)

@urbandove
Copy link
Contributor Author

build is failing pending the merger of #324

@syrusakbary syrusakbary merged commit 568073a into graphql-python:master Nov 14, 2017
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