mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 04:07:16 +03:00
Improved field naming
This commit is contained in:
parent
0bc0218032
commit
cf3a32b50a
|
@ -121,7 +121,7 @@ class Field(object):
|
||||||
"""
|
"""
|
||||||
Displays the module, class and name of the field.
|
Displays the module, class and name of the field.
|
||||||
"""
|
"""
|
||||||
path = '%r.%s' % (self.object_type, self.__class__.__name__)
|
path = '%s[%s]' % (self.__class__.__name__, str(self.field_type))
|
||||||
name = getattr(self, 'field_name', None)
|
name = getattr(self, 'field_name', None)
|
||||||
if name is not None:
|
if name is not None:
|
||||||
return '<%s: %s>' % (path, name)
|
return '<%s: %s>' % (path, name)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user