This commit is contained in:
Paul Konstantin Gerke 2022-08-26 15:42:30 +02:00
parent 500fb06453
commit 9723bccc40
1 changed files with 2 additions and 3 deletions

View File

@ -125,8 +125,7 @@ class ProfileView(views.APIView):
def get(self, request): def get(self, request):
settings = get_object_or_404( settings = get_object_or_404(
babybuddy_models.Settings.objects, babybuddy_models.Settings.objects, user=request.user
user=request.user
) )
serializer = self.serializer_class(settings) serializer = self.serializer_class(settings)
return Response(serializer.data) return Response(serializer.data)