Commit fc7476e8 authored by fred's avatar fred

get diffusion pk as arg when deleting a stream

parent 0c87d29c
......@@ -415,8 +415,8 @@ class AddStreamedDiffusionView(CreateView):
class DelStreamedDiffusionView(RedirectView):
def get_redirect_url(self):
diffusion = Diffusion.objects.get(id=self.kwargs['pk'])
def get_redirect_url(self, pk):
diffusion = Diffusion.objects.get(id=pk)
streamed_diffusion = diffusion.streameddiffusion_set.first()
Markdown is supported
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