def METHOD_NAME(request, annot_id):
    annotation = get_object_or_404(SherdNote, pk=annot_id)
    if annotation.author != request.user:
        return HttpResponseForbidden("forbidden")
    update_annotation(request, annotation)
    if request.is_ajax():
        response = {'asset': {'id': annotation.asset_id},
                    'annotation': {'id': annotation.id}}
        return HttpResponse(json.dumps(response),
                            content_type="application/json")
    else:
        redirect_to = request.GET.get('next', '.')
        return HttpResponseRedirect(redirect_to)