File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
apps/models_provider/serializers Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change 2828from system_manage .models import WorkspaceUserResourcePermission , AuthTargetType
2929from system_manage .serializers .user_resource_permission import UserResourcePermissionSerializer
3030from users .serializers .user import is_workspace_manage
31- from shared .models .shared_model import ModelWorkspaceAuthorization
3231
3332def get_default_model_params_setting (provider , model_type , model_name ):
3433 credential = get_model_credential (provider , model_type , model_name )
@@ -172,7 +171,6 @@ def delete(self, with_valid=True):
172171 if model is None :
173172 return True
174173 QuerySet (WorkspaceUserResourcePermission ).filter (target = model_id ).delete ()
175- QuerySet (ModelWorkspaceAuthorization ).filter (model_id = model_id ).delete ()
176174 # TODO : 这里可以添加模型删除的逻辑,需要注意删除模型时的权限和关联关系
177175 # if model.model_type == 'LLM':
178176 # application_count = Application.objects.filter(model_id=model_id).count()
You can’t perform that action at this time.
0 commit comments