rel -> remote_field: Update Django DeprecatedAttribute

This commit is contained in:
= 2017-12-06 12:45:03 -05:00
parent 24706f50d4
commit d314d1041f

View File

@ -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)