Skip to content

Commit

Permalink
fixed bug when no middlewares are present
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed May 22, 2016
1 parent 91a2423 commit feb0825
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graphene/core/types/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ def get_named_type(self, schema, type):
name = type.name
if not name and schema.auto_camelcase:
name = to_camel_case(type.default_name)
elif not name:
name = type.default_name
return name, schema.T(type)

def iter_types(self, schema):
Expand Down

0 comments on commit feb0825

Please sign in to comment.