We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa6be2c commit 1fdd775Copy full SHA for 1fdd775
graphene_django/types.py
@@ -27,7 +27,7 @@ def construct_fields(options):
27
is_already_created = name in options.fields
28
is_excluded = name in exclude_fields or is_already_created
29
# https://docs.djangoproject.com/en/1.10/ref/models/fields/#django.db.models.ForeignKey.related_query_name
30
- is_no_backref = str.endswith(str(name), '+')
+ is_no_backref = str(name).endswith('+')
31
if is_not_in_only or is_excluded or is_no_backref:
32
# We skip this field if we specify only_fields and is not
33
# in there. Or when we exclude this field in exclude_fields.
0 commit comments