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
b291c6c0
Commit
b291c6c0
authored
Jan 02, 2014
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
episodes: order diffusion dates
parent
fd7fe5f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
panikweb/views.py
panikweb/views.py
+2
-1
No files found.
panikweb/views.py
View file @
b291c6c0
...
...
@@ -109,7 +109,8 @@ class EpisodeDetailView(DetailView, EmissionMixin):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
EpisodeDetailView
,
self
).
get_context_data
(
**
kwargs
)
context
[
'sectionName'
]
=
"Emissions"
context
[
'diffusions'
]
=
Diffusion
.
objects
.
select_related
().
filter
(
episode
=
self
.
object
.
id
)
context
[
'diffusions'
]
=
Diffusion
.
objects
.
select_related
().
filter
(
episode
=
self
.
object
.
id
).
order_by
(
'datetime'
)
context
[
'emission'
]
=
Emission
.
objects
.
get
(
slug
=
self
.
kwargs
.
get
(
'emission_slug'
))
context
.
update
(
self
.
get_emission_context
(
context
[
'emission'
]))
return
context
...
...
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