(self, request, pk)
| 197 | @extend_schema(responses={200: OrganisationSerializerFull}) |
| 198 | @action(detail=True, methods=["POST"], url_path="update-subscription") |
| 199 | def update_subscription(self, request, pk): # type: ignore[no-untyped-def] |
| 200 | serializer = self.get_serializer(data=request.data) |
| 201 | serializer.is_valid(raise_exception=True) |
| 202 | serializer.save() |
| 203 | return Response( |
| 204 | OrganisationSerializerFull(instance=self.get_object()).data, |
| 205 | status=status.HTTP_200_OK, |
| 206 | ) |
| 207 | |
| 208 | @action( |
| 209 | detail=True, |
nothing calls this directly
no test coverage detected