Skip to content

Commit c93492b

Browse files
committed
pep8 fixes
1 parent d9f1df1 commit c93492b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graphene/contrib/django/tests/test_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_should_manytomany_convert_connectionorlist():
9696
def test_should_manytoone_convert_connectionorlist():
9797
# Django 1.9 uses 'rel', <1.9 uses 'related
9898
related = getattr(Reporter.articles, 'rel', None) or \
99-
getattr(Reporter.articles, 'related')
99+
getattr(Reporter.articles, 'related')
100100
graphene_type = convert_django_field(related)
101101
assert isinstance(graphene_type, ConnectionOrListField)
102102
assert isinstance(graphene_type.type, DjangoModelField)

graphene/contrib/django/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_reverse_fields(model):
2020
for name, attr in model.__dict__.items():
2121
# Django =>1.9 uses 'rel', django <1.9 uses 'related'
2222
related = getattr(attr, 'rel', None) or \
23-
getattr(attr, 'related', None)
23+
getattr(attr, 'related', None)
2424
if isinstance(related, models.ManyToOneRel):
2525
yield related
2626

0 commit comments

Comments
 (0)