mirror of https://github.com/jumpserver/jumpserver
fix: 组织删除报错未翻译
parent
68fd8012d8
commit
8c118b6f47
|
@ -74,7 +74,7 @@ class OrgViewSet(BulkModelViewSet):
|
|||
|
||||
def perform_destroy(self, instance):
|
||||
if str(current_org) == str(instance):
|
||||
msg = _('The current organization ({}) cannot be deleted'.format(current_org))
|
||||
msg = _('The current organization ({}) cannot be deleted').format(current_org)
|
||||
raise PermissionDenied(detail=msg)
|
||||
|
||||
for model in org_related_models:
|
||||
|
|
Loading…
Reference in New Issue