Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikdb
Commits
f9f23dbe
Commit
f9f23dbe
authored
Nov 16, 2013
by
fred
Browse files
only display current focus items on homepage
parent
03e571cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikdb/views.py
View file @
f9f23dbe
...
...
@@ -21,7 +21,7 @@ class Home(TemplateView):
context
[
'emissions'
]
=
self
.
request
.
user
.
emissions
.
all
().
order_by
(
'title'
)
context
[
'news_categories'
]
=
self
.
request
.
user
.
news_categories
.
all
().
order_by
(
'title'
)
if
self
.
request
.
user
.
has_perm
(
'emissions.add_focus'
):
context
[
'focused_items'
]
=
Focus
.
objects
.
select_related
()
context
[
'focused_items'
]
=
Focus
.
objects
.
select_related
()
.
filter
(
current
=
True
)
return
context
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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