diff --git a/primed/miscellaneous_workspaces/forms.py b/primed/miscellaneous_workspaces/forms.py index 42856cfc..c335d5cb 100644 --- a/primed/miscellaneous_workspaces/forms.py +++ b/primed/miscellaneous_workspaces/forms.py @@ -119,14 +119,13 @@ class Meta: "requested_by", "is_active", ) - # widgets = { - # "studies": autocomplete.ModelSelect2Multiple( - # url="primed_anvil:studies:autocomplete", - # attrs={"data-theme": "bootstrap-5"}, - # ), - # "requested_by": autocomplete.ModelSelect2( - # url="users:autocomplete", - # attrs={"data-theme": "bootstrap-5"}, - # ), - # "available_data": forms.CheckboxSelectMultiple, - # } + widgets = { + "target_workspace": autocomplete.ModelSelect2( + url="anvil_consortium_manager:workspaces:autocomplete", + attrs={"data-theme": "bootstrap-5"}, + ), + "requested_by": autocomplete.ModelSelect2( + url="users:autocomplete", + attrs={"data-theme": "bootstrap-5"}, + ), + }