Commit 33bc73ab authored by BaiJiangjie's avatar BaiJiangjie

[Update] 添加OTP认证功能

parents f450accb 035dd16b
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment