[feat] 修改remote app, database app的过滤参数

This commit is contained in:
ibuler
2020-05-28 14:47:30 +08:00
parent a463f632e8
commit caf0d85939
3 changed files with 5 additions and 5 deletions

View File

@@ -26,8 +26,8 @@ __all__ = [
class UserGrantedRemoteAppsApi(generics.ListAPIView):
permission_classes = (IsOrgAdminOrAppUser,)
serializer_class = RemoteAppSerializer
filter_fields = ['name', 'id']
search_fields = ['name']
filter_fields = ['name', 'id', 'type', 'comment']
search_fields = ['name', 'comment']
def get_object(self):
user_id = self.kwargs.get('pk', '')