summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorAleksandar Trifunovic <akstrfn@gmail.com>2018-12-15 18:20:58 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2019-01-21 21:19:58 +0100
commit629b12da3fdfe0937ad9a75a7548143171a3e28c (patch)
treece573944e793afd9490e1ba78321f3becc36597e /public
parentb8b85e7f2165044820d57fbfa9e674594e5ccb86 (diff)
downloadarchweb-629b12da3fdfe0937ad9a75a7548143171a3e28c.tar.gz
archweb-629b12da3fdfe0937ad9a75a7548143171a3e28c.zip
request.user.is_authenticated() -> request.user.is_authenticated
Diffstat (limited to 'public')
-rw-r--r--public/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/views.py b/public/views.py
index 74fea2ca..04ee2c81 100644
--- a/public/views.py
+++ b/public/views.py
@@ -18,7 +18,7 @@ from .utils import get_recent_updates
@cache_control(max_age=307)
def index(request):
- if request.user.is_authenticated():
+ if request.user.is_authenticated:
def updates():
return get_recent_updates(testing=True, staging=True)
else:
@@ -79,7 +79,7 @@ def download(request):
@cache_control(max_age=307)
def feeds(request):
repos = Repo.objects.all()
- if not request.user.is_authenticated():
+ if not request.user.is_authenticated:
repos = repos.filter(staging=False)
context = {
'arches': Arch.objects.all(),