summaryrefslogtreecommitdiff
path: root/openstack_dashboard/context_processors.py
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2017-12-12 13:48:55 +0900
committerAkihiro Motoki <amotoki@gmail.com>2018-02-17 01:36:54 +0900
commit1a252cb5e87d0ca1f6a4bea573ca472b64fa33de (patch)
tree66d78cf3c342d25d334cf7d8d47fe1fdda3d98bb /openstack_dashboard/context_processors.py
parent826720ada3a4993b5fcc6da5a01bd389a77ee394 (diff)
downloadhorizon-1a252cb5e87d0ca1f6a4bea573ca472b64fa33de.tar.gz
django2: is_authenticated/is_anonymous is now property only
https://docs.djangoproject.com/en/2.0/releases/1.10/#user-is-auth-anon-deprecation blueprint django2-support Change-Id: I57a39417f0595eae8d1c06d7e61d0a67078bb231
Diffstat (limited to 'openstack_dashboard/context_processors.py')
-rw-r--r--openstack_dashboard/context_processors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_dashboard/context_processors.py b/openstack_dashboard/context_processors.py
index db4371184..1bed8a50f 100644
--- a/openstack_dashboard/context_processors.py
+++ b/openstack_dashboard/context_processors.py
@@ -44,7 +44,7 @@ def openstack(request):
# Auth/Keystone context
context.setdefault('authorized_tenants', [])
- if request.user.is_authenticated():
+ if request.user.is_authenticated:
context['authorized_tenants'] = [
tenant for tenant in
request.user.authorized_tenants if tenant.enabled]