

def blog_post_source(request, username, slug):
    post = get_object_or_404(Post, slug=slug, author__username=username)
    if ((post.status == 1) and (post.author != request.user)):
        raise Http404
    return HttpResponse(post.body, content_type='text/plain; charset=utf-8')

dataset/ETHPy150Open amarandon/smeuhsocial/apps/smeuhoverride/views.py blog_post_source/original