From d314d1041fc86bf08224bf0ddb8da7f7d279cd5b Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 6 Dec 2017 12:45:03 -0500 Subject: [PATCH] rel -> remote_field: Update Django DeprecatedAttribute --- graphene_django/filter/filterset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/filter/filterset.py b/graphene_django/filter/filterset.py index c716b05..4873f71 100644 --- a/graphene_django/filter/filterset.py +++ b/graphene_django/filter/filterset.py @@ -57,7 +57,7 @@ class GrapheneFilterSetMixin(BaseFilterSet): Global IDs (the default implementation expects database primary keys) """ - rel = f.field.rel + rel = f.field.remote_field default = { 'name': name, 'label': capfirst(rel.related_name)