modify errorType
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment