File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
try :
2
- import django_filters
2
+ import django_filters # noqa
3
3
except :
4
4
raise Exception (
5
5
"Use of django filtering requires the django-filter package "
Original file line number Diff line number Diff line change @@ -29,9 +29,12 @@ def construct_fields(cls):
29
29
# We skip this field if we specify only_fields and is not
30
30
# in there. Or when we exclude this field in exclude_fields
31
31
continue
32
- converted_field = convert_django_field (field )
32
+ converted_field = cls . convert_django_field (field )
33
33
cls .add_to_class (field .name , converted_field )
34
34
35
+ def convert_django_field (cls , field ):
36
+ return convert_django_field (field )
37
+
35
38
def construct (cls , * args , ** kwargs ):
36
39
cls = super (DjangoObjectTypeMeta , cls ).construct (* args , ** kwargs )
37
40
if not cls ._meta .abstract :
You can’t perform that action at this time.
0 commit comments