Fix select_related with filtering

This commit is contained in:
Cameron Dawson 2017-07-21 11:23:16 -07:00 committed by Jacob Foster
parent 283bccf9d3
commit 69cec060d8

View File

@ -61,7 +61,7 @@ class DjangoFilterConnectionField(DjangoConnectionField):
low = default_queryset.query.low_mark or queryset.query.low_mark low = default_queryset.query.low_mark or queryset.query.low_mark
high = default_queryset.query.high_mark or queryset.query.high_mark high = default_queryset.query.high_mark or queryset.query.high_mark
default_queryset.query.clear_limits() default_queryset.query.clear_limits()
queryset = default_queryset & queryset queryset = queryset & default_queryset
queryset.query.set_limits(low, high) queryset.query.set_limits(low, high)
return queryset return queryset