feat(applications): 修改ApplicationAPI方法options

pull/4886/head
Michael Bai 2020-10-26 16:57:17 +08:00 committed by 老广
parent 5518e1e00f
commit b7bd88b8a0
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', 'option', 'head']:
elif self.request.method.lower() in ['get', 'options', 'head']:
if app_category:
attrs_cls = models.Category.get_category_serializer_cls(app_category)
else: