Skip to content

Commit

Permalink
Specify fk name in WorkspaceCreate and Import views
Browse files Browse the repository at this point in the history
Fix the bug by adding fk_name to the inlineformset_factory calls
made by WorkspaceCreate and WorkspaceImport.
  • Loading branch information
amstilp committed Nov 7, 2023
1 parent 00c11e9 commit b350d9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions anvil_consortium_manager/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit b350d9c

Please sign in to comment.