From 6fbaba954893907c46c10bf7cd6785cd9b5c21ff Mon Sep 17 00:00:00 2001 From: Paul Traylor Date: Thu, 10 May 2018 21:02:31 +0900 Subject: [PATCH] Testing Django 2.0 --- promgen/middleware.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/promgen/middleware.py b/promgen/middleware.py index 6b13fcc22..78bac5380 100644 --- a/promgen/middleware.py +++ b/promgen/middleware.py @@ -48,7 +48,7 @@ def __call__(self, request): prefetch_related_objects([request.site], 'rule_set') # Get our logged in user to use with our audit logging plugin - if request.user.is_authenticated(): + if request.user.is_authenticated: _user.value = request.user response = self.get_response(request) diff --git a/setup.py b/setup.py index 997bb1cf5..7a851faaf 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ 'atomicwrites', 'celery[redis]==4.1.0', 'dj-database-url', - 'Django >= 1.11, < 1.12', + 'Django >= 2.0, < 2.1', 'envdir', 'prometheus-client', 'python-dateutil', @@ -53,7 +53,7 @@ 'docs': [ 'Sphinx', 'sphinxcontrib-httpdomain', - ] + ], }, entry_points={ 'console_scripts': [