diff --git a/cms/djangoapps/contentstore/api/views.py b/cms/djangoapps/contentstore/api/views.py
index 5761f34d5c..e8d3c49ebb 100644
--- a/cms/djangoapps/contentstore/api/views.py
+++ b/cms/djangoapps/contentstore/api/views.py
@@ -35,7 +35,7 @@ class CourseImportExportViewMixin(DeveloperErrorViewMixin):
Ensures that the user is authenticated (e.g. not an AnonymousUser)
"""
super(CourseImportExportViewMixin, self).perform_authentication(request)
- if request.user.is_anonymous():
+ if request.user.is_anonymous:
raise AuthenticationFailed
diff --git a/cms/djangoapps/contentstore/views/public.py b/cms/djangoapps/contentstore/views/public.py
index f054564534..0a7e568ac7 100644
--- a/cms/djangoapps/contentstore/views/public.py
+++ b/cms/djangoapps/contentstore/views/public.py
@@ -24,7 +24,7 @@ def signup(request):
Display the signup form.
"""
csrf_token = csrf(request)['csrf_token']
- if request.user.is_authenticated():
+ if request.user.is_authenticated:
return redirect('/course/')
if settings.FEATURES.get('AUTH_USE_CERTIFICATES_IMMEDIATE_SIGNUP'):
# Redirect to course to login to process their certificate if SSL is enabled
@@ -68,7 +68,7 @@ def login_page(request):
def howitworks(request):
"Proxy view"
- if request.user.is_authenticated():
+ if request.user.is_authenticated:
return redirect('/home/')
else:
return render_to_response('howitworks.html', {})
diff --git a/cms/templates/base.html b/cms/templates/base.html
index 9332d92263..0a6b896f47 100644
--- a/cms/templates/base.html
+++ b/cms/templates/base.html
@@ -110,7 +110,7 @@ from openedx.core.release import RELEASE_LINE
- % if user.is_authenticated():
+ % if user.is_authenticated:
<%include file="widgets/sock.html" args="online_help_token=online_help_token" />
% endif
<%include file="widgets/footer.html" />
@@ -142,7 +142,7 @@ from openedx.core.release import RELEASE_LINE
}
% endif
- % if user.is_authenticated():
+ % if user.is_authenticated:
<%static:invoke_page_bundle page_name='js/sock'/>
% endif
<%block name='page_bundle'>
diff --git a/cms/templates/widgets/header.html b/cms/templates/widgets/header.html
index ecdabc0658..512078e088 100644
--- a/cms/templates/widgets/header.html
+++ b/cms/templates/widgets/header.html
@@ -190,7 +190,7 @@
% endif
% endif
- % if user.is_authenticated():
+ % if user.is_authenticated: