03d5853c by 周伟奇

modify errorType

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