def METHOD_NAME(posts, exclude_post=None):
    """Return the most recent post in the given set, excluding the given post.
    If there are none, return None.
    """
    if exclude_post:
        posts = posts.exclude(id=exclude_post.id)
    posts = posts.order_by("-created")
    try:
        return posts[0]
    except IndexError:
        return None