@require_POST
@login_required
@permitted
def unfollow_thread(request, course_id, thread_id):
 user = cc.User.from_django_user(request.user)
 thread = cc.Thread.find(thread_id)
 user.unfollow(thread)
 return JsonResponse({})

@ require_POST @ login_required @ permitted def unfollow_thread ( request , course_id , thread_id ) : user = cc . User . from_django_user ( request . user ) thread = cc . Thread . find ( thread_id ) user . unfollow ( thread ) return JsonResponse ( { } )
given a course id and thread id .