diff --git a/.vscode/settings.json b/.vscode/settings.json index 4687599b..f4efc816 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,7 +8,8 @@ // "-v", // "--cov", // "--cov-report xml", - "app" + "-s", + "app", ], "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true, diff --git a/app/access/viewsets/team_user.py b/app/access/viewsets/team_user.py index 7cc9c6a5..f9a8dbc2 100644 --- a/app/access/viewsets/team_user.py +++ b/app/access/viewsets/team_user.py @@ -145,6 +145,10 @@ class ViewSet( ModelViewSet ): model = TeamUsers + parent_model = Team + + parent_model_pk_kwarg = 'team_id' + documentation: str = '' view_description = 'Users belonging to a single team'