Commit fc2eacf4 authored by fred's avatar fred
Browse files

fix request to get all soundfiles of an emission

parent 5d8f3473
......@@ -67,7 +67,7 @@ class EmissionDetailView(DetailView):
# get all related soundfiles in a single query
soundfiles = {}
for soundfile in SoundFile.objects.filter(podcastable=True,
fragment=False, episode=self.object):
fragment=False, episode__emission=self.object):
soundfiles[soundfile.episode_id] = soundfile
# replace dynamic property by a static attribute, to avoid database
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment