From 0364f69014f955300950c987d02acbf4e5a604bc Mon Sep 17 00:00:00 2001 From: behruz-dev Date: Tue, 7 Oct 2025 18:09:25 +0500 Subject: [PATCH] fix --- core/apps/shared/views/usd_course.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/apps/shared/views/usd_course.py b/core/apps/shared/views/usd_course.py index 6265e0e..47d3fb3 100644 --- a/core/apps/shared/views/usd_course.py +++ b/core/apps/shared/views/usd_course.py @@ -18,8 +18,8 @@ class UsdCourseApiView(generics.GenericAPIView): serializer = self.serializer_class(value) return Response(serializer.data, status=200) - def patch(self, request, id): - usd_cource = get_object_or_404(UsdCourse, id=id) + def patch(self, request): + usd_cource = UsdCourse.objects.first() serializer = self.serializer_class(data=request.data) if serializer.is_valid(): return Response(serializer.errors, status=400)