예제 #1
0
파일: views.py 프로젝트: will-murphy/upbeat
def post_by(request, username):
    return HttpResponse(Post.all_as_json(map(
        lambda post: post.refresh_score(),
        Post.objects.filter(username = username, deleted = False).all())))