(self, request, *args, **kwargs)
| 87 | Destroy a model instance. |
| 88 | """ |
| 89 | def destroy(self, request, *args, **kwargs): |
| 90 | instance = self.get_object() |
| 91 | self.perform_destroy(instance) |
| 92 | return Response(status=status.HTTP_204_NO_CONTENT) |
| 93 | |
| 94 | def perform_destroy(self, instance): |
| 95 | instance.delete() |
no test coverage detected