feat(applications): 修改ApplicationAPI方法method判断->action

pull/4886/head
Bai 2020-10-27 10:35:40 +08:00 committed by 老广
parent b7bd88b8a0
commit cc30b766f8
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class ApplicationViewSet(OrgBulkModelViewSet):
attrs_cls = None
if app_type:
attrs_cls = models.Category.get_type_serializer_cls(app_type)
elif self.request.method.lower() in ['get', 'options', 'head']:
elif self.action in ['list', 'retrieve', 'metadata']:
if app_category:
attrs_cls = models.Category.get_category_serializer_cls(app_category)
else: