Skip to content

Commit

Permalink
type() argument 1 must be string, not unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Gilmartin authored and Paul Gilmartin committed Nov 10, 2020
1 parent af9fe87 commit dba9c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph_wrap/tastypie/schema_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def create(self):
query_class_attrs.update(**query_attributes.to_dict())
self.resource_class_to_schema[resource.__class__] = (
query_attributes.graphene_type)
Query = type('Query', (graphene.ObjectType,), query_class_attrs)
Query = type(str('Query'), (graphene.ObjectType,), query_class_attrs)
return graphene.Schema(query=Query)

def _usable_resources(self):
Expand Down

0 comments on commit dba9c4b

Please sign in to comment.