Skip to content

Commit feb0825

Browse files
committed
fixed bug when no middlewares are present
1 parent 91a2423 commit feb0825

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphene/core/types/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ def get_named_type(self, schema, type):
147147
name = type.name
148148
if not name and schema.auto_camelcase:
149149
name = to_camel_case(type.default_name)
150+
elif not name:
151+
name = type.default_name
150152
return name, schema.T(type)
151153

152154
def iter_types(self, schema):

0 commit comments

Comments
 (0)