Merge branch 'django-2-upgrade' into 'master'

major: update to DjangoLDPv1

See merge request djangoldp-packages/djangoldp-notification!30
This commit is contained in:
Jean-Baptiste Pasquier 2020-09-15 13:15:14 +00:00
commit 32f4c8fa0e
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class CurrentUserMiddleware:
# so no signal handler should be attached
return
if hasattr(request, 'user') and request.user.is_authenticated():
if hasattr(request, 'user') and request.user.is_authenticated:
user = request.user
else:
user = None

View File

@ -10,7 +10,7 @@ license = MIT
[options]
packages = find:
install_requires =
djangoldp~=0.7
djangoldp>=1.0.0
[options.extras_require]
include_package_data = True