Skip to content

Commit

Permalink
Fix adding additional owners
Browse files Browse the repository at this point in the history
  • Loading branch information
AymericJak committed Oct 13, 2023
1 parent d9986a9 commit 108532e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pod/playlist/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,7 @@ def handle_post_request_for_add_or_edit_function(request, playlist: Playlist) ->
new_playlist.additional_owners.clear()
new_playlist.save()
if request.POST.get("additional_owners"):
for o in request.POST.get("additional_owners"):
new_playlist.additional_owners.add(o)
new_playlist.additional_owners.set(request.POST.getlist("additional_owners"))
new_playlist.save()
if request.GET.get("next"):
video_slug = request.GET.get("next").split("/")[2]
Expand Down

0 comments on commit 108532e

Please sign in to comment.