DjangoFilterConnectionField now extends ConnectionField, as DjangoConnectionField is now deprecated

This commit is contained in:
Adam Charnock 2015-12-06 10:38:28 +00:00
parent 93e758dc13
commit 3d4f593300

View File

@ -1,9 +1,9 @@
from graphene.contrib.django import DjangoConnectionField from graphene.relay import ConnectionField
from graphene.contrib.django.filter.resolvers import FilterConnectionResolver from graphene.contrib.django.filter.resolvers import FilterConnectionResolver
from graphene.contrib.django.utils import get_filtering_args_from_filterset from graphene.contrib.django.utils import get_filtering_args_from_filterset
class DjangoFilterConnectionField(DjangoConnectionField): class DjangoFilterConnectionField(ConnectionField):
def __init__(self, type, on=None, fields=None, order_by=None, def __init__(self, type, on=None, fields=None, order_by=None,
extra_filter_meta=None, filterset_class=None, resolver=None, extra_filter_meta=None, filterset_class=None, resolver=None,