Merge pull request #325 from urbandove/master

Fix infinite recursion when sublassing DjangoFilterConnectionField
This commit is contained in:
Syrus Akbary 2017-11-14 13:16:26 -08:00 committed by GitHub
commit 568073a090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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