[Bugfix] 修复授权详情中选择用户或资产的bug

pull/1213/head
ibuler 2018-04-19 10:34:17 +08:00
parent 48e8785725
commit 035dd16b36
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ class AssetPermissionUserView(AdminUserRequiredMixin,
return super().get(request, *args, **kwargs)
def get_queryset(self):
queryset = self.object.get_all_users()
queryset = list(self.object.get_all_users())
return queryset
def get_context_data(self, **kwargs):
@ -142,7 +142,7 @@ class AssetPermissionAssetView(AdminUserRequiredMixin,
return super().get(request, *args, **kwargs)
def get_queryset(self):
queryset = self.object.get_all_assets()
queryset = list(self.object.get_all_assets())
return queryset
def get_context_data(self, **kwargs):