Skip to content

Commit d959f9f

Browse files
authored
Update is_authenticated. Closes #229
1 parent fb51b97 commit d959f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forms_builder/forms/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_context_data(self, **kwargs):
3636
def get(self, request, *args, **kwargs):
3737
context = self.get_context_data(**kwargs)
3838
login_required = context["form"].login_required
39-
if login_required and not request.user.is_authenticated():
39+
if login_required and not request.user.is_authenticated:
4040
path = urlquote(request.get_full_path())
4141
bits = (settings.LOGIN_URL, REDIRECT_FIELD_NAME, path)
4242
return redirect("%s?%s=%s" % bits)

0 commit comments

Comments
 (0)