Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
629b12da
Commit
629b12da
authored
Dec 15, 2018
by
Aleksandar Trifunovic
Committed by
Jelle van der Waa
Jan 21, 2019
Browse files
request.user.is_authenticated() -> request.user.is_authenticated
parent
b8b85e7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/views.py
View file @
629b12da
...
...
@@ -18,7 +18,7 @@
@
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
(),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment