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 6801b69 commit aa6be2cCopy full SHA for aa6be2c
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(name, '+')
+ is_no_backref = str.endswith(str(name), '+')
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