def spam_comment(request, id): """Spam comment""" comment = get_object_or_404(Comment, pk=id) comment.status = '7spam' comment.save() referer = get_referer(request) return redirect(referer)