Skip to content

Commit

Permalink
fix album update file multiselect
Browse files Browse the repository at this point in the history
  • Loading branch information
tykling committed Jun 23, 2024
1 parent beaa40d commit 05e3568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/albums/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def form_valid(self, form: Form) -> HttpResponseRedirect:
album = form.save(commit=False) # type: ignore[attr-defined]
album.owner = self.request.user
album.save()
album.update_members(*form.cleaned_data["files"], replace=False)
album.update_members(*[f.pk for f in form.cleaned_data["files"]], replace=False)
return HttpResponseRedirect(album.get_absolute_url())


Expand Down

0 comments on commit 05e3568

Please sign in to comment.