mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 12:44:15 +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.
|
||||
"""
|
||||
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)
|
||||
if name is not None:
|
||||
return '<%s: %s>' % (path, name)
|
||||
|
|
Loading…
Reference in New Issue
Block a user