diff options
author | Akihiro Motoki <amotoki@gmail.com> | 2017-12-12 13:48:55 +0900 |
---|---|---|
committer | Akihiro Motoki <amotoki@gmail.com> | 2018-02-17 01:36:54 +0900 |
commit | 1a252cb5e87d0ca1f6a4bea573ca472b64fa33de (patch) | |
tree | 66d78cf3c342d25d334cf7d8d47fe1fdda3d98bb /openstack_dashboard/context_processors.py | |
parent | 826720ada3a4993b5fcc6da5a01bd389a77ee394 (diff) | |
download | horizon-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.py | 2 |
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] |