Skip to content

Commit 6145197

Browse files
authored
Merge pull request #619 from dsanders11/patch-1
Drop old Django compatibility code
2 parents 651d57e + 6acd917 commit 6145197

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graphene_django/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ def get_reverse_fields(model, local_field_names):
2525
if name in local_field_names:
2626
continue
2727

28-
# Django =>1.9 uses 'rel', django <1.9 uses 'related'
29-
related = getattr(attr, "rel", None) or getattr(attr, "related", None)
28+
related = getattr(attr, "rel", None)
3029
if isinstance(related, models.ManyToOneRel):
3130
yield (name, related)
3231
elif isinstance(related, models.ManyToManyRel) and not related.symmetrical:

0 commit comments

Comments
 (0)