Skip to content

Commit

Permalink
修复删除用户组资产记录bug
Browse files Browse the repository at this point in the history
  • Loading branch information
welliamcao committed Mar 20, 2018
1 parent b1f374d commit 83225d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpsManage/restfull/assets_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def group_detail(request, id,format=None):
if not request.user.has_perm('Opsmanage.delete_group'):
return Response(status=status.HTTP_403_FORBIDDEN)
snippet.delete()
recordAssets.delay(user=str(request.user),content="删除用户组:{group_name}".format(group_name=snippet.group_name),type="group",id=id)
recordAssets.delay(user=str(request.user),content="删除用户组:{group_name}".format(group_name=snippet.name),type="group",id=id)
return Response(status=status.HTTP_204_NO_CONTENT)

@api_view(['GET', 'POST' ])
Expand Down

0 comments on commit 83225d8

Please sign in to comment.