@require_POST
@login_required
def unwatch_document(request, document_slug):
 document = get_object_or_404(Document, locale=request.LANGUAGE_CODE, slug=document_slug)
 EditDocumentEvent.stop_notifying(request.user, document)
 return HttpResponseRedirect(document.get_absolute_url())

@ require_POST @ login_required def unwatch_document ( request , document_slug ) : document = get_object_or_404 ( Document , locale = request . LANGUAGE_CODE , slug = document_slug ) EditDocumentEvent . stop_notifying ( request . user , document ) return HttpResponseRedirect ( document . get_absolute_url ( ) )
stop watching a document for edits .