From 6acd917cf7076397009d0ba77901f4c1c8e190fe Mon Sep 17 00:00:00 2001 From: David Sanders Date: Mon, 15 Apr 2019 05:53:30 -0700 Subject: [PATCH] Drop old Django compatibility code --- graphene_django/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/graphene_django/utils.py b/graphene_django/utils.py index 560f604..532be06 100644 --- a/graphene_django/utils.py +++ b/graphene_django/utils.py @@ -25,8 +25,7 @@ def get_reverse_fields(model, local_field_names): if name in local_field_names: continue - # Django =>1.9 uses 'rel', django <1.9 uses 'related' - related = getattr(attr, "rel", None) or getattr(attr, "related", None) + related = getattr(attr, "rel", None) if isinstance(related, models.ManyToOneRel): yield (name, related) elif isinstance(related, models.ManyToManyRel) and not related.symmetrical: