|
|
|
|
@ -28,7 +28,7 @@ def likes(request, course_id): |
|
|
|
|
except Course.DoesNotExist: |
|
|
|
|
return JsonResponse({ |
|
|
|
|
'success': False, |
|
|
|
|
'errors': ['Course with id f{cource_id} not found'] |
|
|
|
|
'errors': ['Course with id f{course_id} not found'] |
|
|
|
|
}, status=400) |
|
|
|
|
else: |
|
|
|
|
course_user_likes = course.likes.filter(user=request.user) |
|
|
|
|
@ -57,7 +57,7 @@ def coursecomment(request, course_id): |
|
|
|
|
except Course.DoesNotExist: |
|
|
|
|
return JsonResponse({ |
|
|
|
|
'success': False, |
|
|
|
|
'errors': ['Course with id f{cource_id} not found'] |
|
|
|
|
'errors': ['Course with id f{course_id} not found'] |
|
|
|
|
}, status=400) |
|
|
|
|
else: |
|
|
|
|
reply_to = request.POST.get('reply_id', 0) |
|
|
|
|
|