mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-05-24 14:53:51 +00:00
Use user.is_authenticated for Django 2.0 compatibility.
This commit is contained in:
parent
7bc1467374
commit
4c72289ac8
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ def get_identity(context, prefix=None, identity_func=None, user=None):
|
|||
try:
|
||||
if user is None:
|
||||
user = get_user_from_context(context)
|
||||
if user.is_authenticated():
|
||||
if user.is_authenticated:
|
||||
if identity_func is not None:
|
||||
return identity_func(user)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue