fix: 修复工单相应bug

This commit is contained in:
feng626
2022-03-16 16:21:00 +08:00
committed by Jiangjie.Bai
parent ee757e261d
commit 3a26b9d102
4 changed files with 9 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ class SimpleMetadataWithFilters(SimpleMetadata):
the fields that are accepted for 'PUT' and 'POST' methods.
"""
actions = {}
view.raw_action = view.action
for method in self.methods & set(view.allowed_methods):
if hasattr(view, 'action_map'):
view.action = view.action_map.get(method.lower(), view.action)