File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def test_should_manytomany_convert_connectionorlist():
96
96
def test_should_manytoone_convert_connectionorlist ():
97
97
# Django 1.9 uses 'rel', <1.9 uses 'related
98
98
related = getattr (Reporter .articles , 'rel' , None ) or \
99
- getattr (Reporter .articles , 'related' )
99
+ getattr (Reporter .articles , 'related' )
100
100
graphene_type = convert_django_field (related )
101
101
assert isinstance (graphene_type , ConnectionOrListField )
102
102
assert isinstance (graphene_type .type , DjangoModelField )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def get_reverse_fields(model):
20
20
for name , attr in model .__dict__ .items ():
21
21
# Django =>1.9 uses 'rel', django <1.9 uses 'related'
22
22
related = getattr (attr , 'rel' , None ) or \
23
- getattr (attr , 'related' , None )
23
+ getattr (attr , 'related' , None )
24
24
if isinstance (related , models .ManyToOneRel ):
25
25
yield related
26
26
You can’t perform that action at this time.
0 commit comments