@@ -30,12 +30,9 @@ def construct_fields(cls):
30
30
# We skip this field if we specify only_fields and is not
31
31
# in there. Or when we exclude this field in exclude_fields
32
32
continue
33
- converted_field = cls . convert_django_field (field )
33
+ converted_field = convert_django_field (field )
34
34
cls .add_to_class (field .name , converted_field )
35
35
36
- def convert_django_field (cls , field ):
37
- return convert_django_field (field )
38
-
39
36
def construct (cls , * args , ** kwargs ):
40
37
cls = super (DjangoObjectTypeMeta , cls ).construct (* args , ** kwargs )
41
38
if not cls ._meta .abstract :
@@ -50,15 +47,6 @@ def construct(cls, *args, **kwargs):
50
47
return cls
51
48
52
49
53
- class DjangoFilterObjectTypeMeta (ObjectTypeMeta ):
54
-
55
- def convert_django_field (cls , field ):
56
- from graphene .contrib .django .filter import DjangoFilterConnectionField
57
- field = super (DjangoFilterObjectTypeMeta , cls ).convert_django_field (field )
58
- field .connection_field_class = DjangoFilterConnectionField
59
- return field
60
-
61
-
62
50
class InstanceObjectType (ObjectType ):
63
51
64
52
class Meta :
@@ -102,13 +90,7 @@ def from_list(cls, iterable, *args, **kwargs):
102
90
return super (DjangoConnection , cls ).from_list (iterable , * args , ** kwargs )
103
91
104
92
105
- django_filter_metabase = type
106
- # Only include filter functionality if available
107
- if DJANGO_FILTER_INSTALLED :
108
- django_filter_metabase = DjangoFilterObjectTypeMeta
109
-
110
-
111
- class DjangoNodeMeta (django_filter_metabase , DjangoObjectTypeMeta , NodeMeta ):
93
+ class DjangoNodeMeta (DjangoObjectTypeMeta , NodeMeta ):
112
94
pass
113
95
114
96
0 commit comments