Skip to content
Snippets Groups Projects
Commit c7ced8d9 authored by Albert Feghaly's avatar Albert Feghaly
Browse files

Simplify syntax

parent a624539e
No related branches found
No related tags found
2 merge requests!106Dev,!104Resolve "Need an option for Profiles to only return user info"
......@@ -198,7 +198,7 @@ class Query(graphene.ObjectType):
return qs.distinct()
def resolve_my_profile(self, info, **kwargs):
return Profile.objects.get(user__email=info.context.user.email)
return Profile.objects.get(user=info.context.user)
def resolve_profiles(self, info, **kwargs):
email_list = kwargs.get('in_email_list')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment