From e3aa79d83b5cd30526043dacdaf95c11053bd207 Mon Sep 17 00:00:00 2001 From: Calum Mackervoy Date: Tue, 15 Sep 2020 13:15:14 +0000 Subject: [PATCH] major: update to DjangoLDPv1 --- djangoldp_notification/middlewares.py | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/djangoldp_notification/middlewares.py b/djangoldp_notification/middlewares.py index d67000a..ee26900 100644 --- a/djangoldp_notification/middlewares.py +++ b/djangoldp_notification/middlewares.py @@ -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 diff --git a/setup.cfg b/setup.cfg index baa555b..a7120f4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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