From b350d9c4b3240754bff84d6eb8c799dcf9d04a7b Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Tue, 7 Nov 2023 15:09:21 -0800 Subject: [PATCH] Specify fk name in WorkspaceCreate and Import views Fix the bug by adding fk_name to the inlineformset_factory calls made by WorkspaceCreate and WorkspaceImport. --- anvil_consortium_manager/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anvil_consortium_manager/views.py b/anvil_consortium_manager/views.py index 906a1754..a7dd61ef 100644 --- a/anvil_consortium_manager/views.py +++ b/anvil_consortium_manager/views.py @@ -1005,6 +1005,7 @@ def get_workspace_data_formset(self): absolute_max=1, max_num=1, min_num=1, + fk_name="workspace", ) if self.request.method in ("POST"): formset = formset_factory( @@ -1137,6 +1138,7 @@ def get_workspace_data_formset(self): absolute_max=1, max_num=1, min_num=1, + fk_name="workspace", ) if self.request.method in ("POST"): formset = formset_factory(