From 3f08ed629ccd1ddb0d8e7630fc8fe3a2a8f085a6 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 13 Nov 2017 14:56:25 -0500 Subject: [PATCH] Fix infinite recursion when sublassing DjangoFilterConnectionField and merging querysets --- graphene_django/filter/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/filter/fields.py b/graphene_django/filter/fields.py index ae6f6a6..f9297b6 100644 --- a/graphene_django/filter/fields.py +++ b/graphene_django/filter/fields.py @@ -61,7 +61,7 @@ class DjangoFilterConnectionField(DjangoConnectionField): low = default_queryset.query.low_mark or queryset.query.low_mark high = default_queryset.query.high_mark or queryset.query.high_mark default_queryset.query.clear_limits() - queryset = super(cls, cls).merge_querysets(default_queryset, queryset) + queryset = super(DjangoFilterConnectionField, cls).merge_querysets(default_queryset, queryset) queryset.query.set_limits(low, high) return queryset