Skip to content

Commit

Permalink
Fix model return types
Browse files Browse the repository at this point in the history
  • Loading branch information
sambles committed Jul 10, 2024
1 parent 4b9f097 commit cf81b37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/oasisapi/analysis_models/v2_api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ def content(self, request, pk=None, models_pk=None, version=None):
return handle_json_data(self.get_object(), 'file', request, AnalysisSettingsSerializer)


@method_decorator(name='list', decorator=swagger_auto_schema(responses={200: AnalysisModelListSerializer(many=True)}))
@method_decorator(name='create', decorator=swagger_auto_schema(responses={200: AnalysisModelListSerializer()}))
@method_decorator(name='update', decorator=swagger_auto_schema(responses={200: AnalysisModelListSerializer()}))
@method_decorator(name='partial_update', decorator=swagger_auto_schema(responses={200: AnalysisModelListSerializer()}))
class AnalysisModelViewSet(VerifyGroupAccessModelViewSet):
"""
list:
Expand Down

0 comments on commit cf81b37

Please sign in to comment.