diff --git a/pi/views.py b/pi/views.py index 29d932b..ea63733 100644 --- a/pi/views.py +++ b/pi/views.py @@ -19,4 +19,4 @@ class PiLogViewSet(ReadOnlyModelViewSet): def simulate(self, request): """Run one simulation of the pi estimator.""" simulation, _, _ = PiLog.objects.simulate() - return Response(self.get_serializer(simulation).data) + return Response(self.get_serializer(simulation).data, 201)