Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
radiopanik
panikweb
Commits
1237384c
Commit
1237384c
authored
Oct 17, 2013
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
home: update home to only consider current focus items
parent
f87543f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
panikweb/views.py
panikweb/views.py
+1
-1
No files found.
panikweb/views.py
View file @
1237384c
...
...
@@ -406,7 +406,7 @@ class Home(TemplateView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
Home
,
self
).
get_context_data
(
**
kwargs
)
context
[
'sectionName'
]
=
"Home"
context
[
'focus'
]
=
Focus
.
objects
.
select_related
(
'emission'
,
'newsitem'
,
context
[
'focus'
]
=
Focus
.
objects
.
filter
(
current
=
True
).
select_related
(
'emission'
,
'newsitem'
,
'soundfile'
,
'episode'
,
'newsitem__category'
).
order_by
(
'?'
)[:
12
]
context
[
'emissions'
]
=
Emission
.
objects
.
filter
(
archived
=
False
,
creation_timestamp__gte
=
datetime
(
2013
,
9
,
13
)).
order_by
(
'title'
)
...
...
Write
Preview
Markdown
is supported
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