From 8fdc7511d85057a9d09768a5b7f3b4bdb37c3bb0 Mon Sep 17 00:00:00 2001 From: Adam Hooper Date: Fri, 3 May 2019 16:50:24 -0400 Subject: [PATCH] s/User.is_authenticated()/User.is_authenticated The parentheses are deprecated. --- server/views/workflows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/views/workflows.py b/server/views/workflows.py index dae443947..91bd43220 100644 --- a/server/views/workflows.py +++ b/server/views/workflows.py @@ -64,7 +64,7 @@ def make_init_state(request, workflow=None, modules=None): ret['modules'] = dict([(str(m['id_name']), m) for m in modules_data_list]) - if request.user.is_authenticated(): + if request.user.is_authenticated: ret['loggedInUser'] = UserSerializer(request.user).data return ret