[Bugfix] 修复授权列表引起的分页bug

pull/1550/head
ibuler 2018-07-18 15:24:58 +08:00
parent 2cb5876d1a
commit c215278978
1 changed files with 0 additions and 3 deletions

View File

@ -20,12 +20,9 @@ class AssetPermissionViewSet(viewsets.ModelViewSet):
"""
资产授权列表的增删改查api
"""
filter_fields = ("name",)
search_fields = filter_fields
queryset = AssetPermission.objects.all()
serializer_class = serializers.AssetPermissionCreateUpdateSerializer
permission_classes = (IsSuperUser,)
pagination_class = LimitOffsetPagination
def get_serializer_class(self):
if self.action in ("list", 'retrieve'):