Id("dynamic_group_assignment_all").value = true;
        } else {
            document.getElementById("dynamic_group_assignment_all").value = "";
            const formData = new FormData(document.getElementById("object_list_form"));
            for (let pk of formData.getAll("pk")) {
                let input = document.createElement("input");
                input.setAttribute("type", "hidden");
                input.setAttribute("name", "pk");
                input.setAttribute("value", pk);
            