Merge pull request #401 from eyal0803/patch-1

Fixes #400
This commit is contained in:
Syrus Akbary 2018-02-28 20:36:55 -08:00 committed by GitHub
commit 34ddc6ce85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 if hasattr(f.field, 'remote_field') else f.field.rel
default = {
'name': name,
'label': capfirst(rel.related_name)