03d5853c by 周伟奇

modify errorType

1 parent 08ce1a04
......@@ -829,7 +829,8 @@ class ResourcesView(GenericView):
authentication_classes = []
def get(self, request):
error_type = ErrorType.get_mappings()
error_type_map = ErrorType.get_mappings()
error_type = [{'label': v, 'value': k} for k, v in error_type_map.items()]
resources = {
'error_type': error_type
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!