Skip to content

Commit

Permalink
refactor: Use resolvable to get model name
Browse files Browse the repository at this point in the history
  • Loading branch information
abawchen committed Jun 5, 2018
1 parent 499f7e9 commit 14878fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_mongo/mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def create_mutate(self, info, **kwargs):
instance = resolvable._meta.model(**kwargs)
instance.save()
data = {
model.__name__.lower(): instance,
resolvable._meta.model.__name__.lower(): instance,
'success': True
}
return mutation(**data)
Expand Down

0 comments on commit 14878fd

Please sign in to comment.