Skip to content

Commit

Permalink
fix: use view set without model
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Feb 12, 2024
1 parent 801caae commit 273f8fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prophecies/apps/api/views/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def create(self, validated_data):
operation_id="Create Operation"
),
)
class OperationViewSet(viewsets.GenericViewSet):
class OperationViewSet(viewsets.ViewSet):
"""
To create bulk operations. Each operation is defined by a list of
`operations` and a list of `payloads` to apply to resources. Each resource
Expand All @@ -135,3 +135,6 @@ def create(self, request):
serializer.is_valid(raise_exception=True)
serializer.save()
return Response(serializer.validated_data)

def get_queryset(self):
return []

0 comments on commit 273f8fe

Please sign in to comment.