Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
panikweb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
radiopanik
panikweb
Commits
5042c1ba
Commit
5042c1ba
authored
Feb 17, 2014
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not allow any episode under any emission
parent
a6acb375
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
panikweb/views.py
panikweb/views.py
+3
-1
No files found.
panikweb/views.py
View file @
5042c1ba
...
...
@@ -113,9 +113,11 @@ class EpisodeDetailView(DetailView, EmissionMixin):
context
[
'diffusions'
]
=
Diffusion
.
objects
.
select_related
().
filter
(
episode
=
self
.
object
.
id
).
order_by
(
'datetime'
)
try
:
context
[
'emission'
]
=
Emission
.
objects
.
get
(
slug
=
self
.
kwargs
.
get
(
'emission_slug'
))
context
[
'emission'
]
=
context
[
'episode'
].
emission
except
Emission
.
DoesNotExist
:
raise
Http404
()
if
self
.
kwargs
.
get
(
'emission_slug'
)
!=
context
[
'emission'
].
slug
:
raise
Http404
()
context
.
update
(
self
.
get_emission_context
(
context
[
'emission'
]))
return
context
episode
=
EpisodeDetailView
.
as_view
()
...
...
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