From 05e35689736d48bf34024358887634fa35214e9a Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 23 Jun 2024 15:19:25 +0200 Subject: [PATCH] fix album update file multiselect --- src/albums/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/albums/views.py b/src/albums/views.py index df03b3a8..d77cc6c7 100644 --- a/src/albums/views.py +++ b/src/albums/views.py @@ -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())