(request, uid)
return post.json_data()
Details for a post.

    Parameters:
    id -- the id of the `Post`.
Details for a post.
Details for a post .
def post_details(request, uid):
    """
    Details for a post.

    Parameters:
    id -- the id of the `Post`.
    """

    post = Post.objects.filter(uid=uid).first()
    if not post:
        return {}
    return post.json_data()
def post_details ( request , uid ) : post = Post . objects . filter ( uid = uid ) . first ( ) if not post : return { } return post . json_data ( )