Skip to content

Commit bfd43bc

Browse files
committed
Flake8 fixes
1 parent eb665d5 commit bfd43bc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

graphene/contrib/django/filter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
try:
2-
import django_filters
2+
import django_filters # noqa
33
except:
44
raise Exception(
55
"Use of django filtering requires the django-filter package "

graphene/contrib/django/types.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ def construct_fields(cls):
2929
# We skip this field if we specify only_fields and is not
3030
# in there. Or when we exclude this field in exclude_fields
3131
continue
32-
converted_field = convert_django_field(field)
32+
converted_field = cls.convert_django_field(field)
3333
cls.add_to_class(field.name, converted_field)
3434

35+
def convert_django_field(cls, field):
36+
return convert_django_field(field)
37+
3538
def construct(cls, *args, **kwargs):
3639
cls = super(DjangoObjectTypeMeta, cls).construct(*args, **kwargs)
3740
if not cls._meta.abstract:

0 commit comments

Comments
 (0)