diff --git a/djangoldp_notification/middlewares.py b/djangoldp_notification/middlewares.py index d67000ab5d6cab2a0710f64b240e802a05fdb717..ee269007e17173d32f0b015c2f2755232adcd71e 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 baa555b1456a7b9870ad7b0a6f6ecf2bcf71145f..a7120f4359164b439b7ce6213f4bd0d923ad9ee4 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