From 9d245287a4bd8a001df54cdbfc14f04e0e0d293a Mon Sep 17 00:00:00 2001 From: A C SREEDHAR REDDY Date: Fri, 16 Aug 2019 19:03:59 +0530 Subject: [PATCH] is_authenticated is bool not callable. (#749) --- docs/authorization.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/authorization.rst b/docs/authorization.rst index 2c38fa4..5199081 100644 --- a/docs/authorization.rst +++ b/docs/authorization.rst @@ -84,7 +84,7 @@ with the context argument. def resolve_my_posts(self, info): # context will reference to the Django request - if not info.context.user.is_authenticated(): + if not info.context.user.is_authenticated: return Post.objects.none() else: return Post.objects.filter(owner=info.context.user)