Skip to content

Commit

Permalink
fix error delete list of contributors (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinhantran committed May 16, 2023
1 parent 4e0df65 commit 5f00e8c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions pod/completion/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,6 @@ def video_completion_contributor_modify(request, video):

def video_completion_contributor_delete(request, video):
"""View to delete a video contributor."""
list_contributor = video.contributor_set.all()
list_track = video.track_set.all()
list_document = video.document_set.all()
list_overlay = video.overlay_set.all()

contributor = get_object_or_404(Contributor, id=request.POST["id"])
contributor.delete()
Expand All @@ -378,15 +374,11 @@ def video_completion_contributor_delete(request, video):
}
data = json.dumps(some_data_to_dump)
return HttpResponse(data, content_type="application/json")
context = get_video_completion_context(video)
return render(
request,
"video_completion.html",
{
"video": video,
"list_document": list_document,
"list_track": list_track,
"list_overlay": list_overlay,
},
context,
)


Expand Down

0 comments on commit 5f00e8c

Please sign in to comment.