[Update] 解决授权资产页面资产重复的问题

pull/2989/head
BaiJiangJie 2019-07-18 13:56:08 +08:00
parent fc01b952b3
commit ce1bb66f23
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class AssetPermission(BasePermission):
if pattern:
args.append(Q(nodes__key__regex=pattern))
args = reduce(lambda x, y: x | y, args)
assets = Asset.objects.filter(args)
assets = Asset.objects.filter(args).distinct()
return assets