[Update] 添加OTP认证功能

pull/1214/head^2
BaiJiangjie 2018-04-19 10:49:47 +08:00
commit 33bc73aba7
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):