def METHOD_NAME(request):
    post = herald_publisher(request)
    if not post:
        messages.error(request, "Not enough submissions to publish.")
        return redirect(reverse('herald_list'))
    return redirect(reverse('post_view', kwargs=dict(uid=post.uid)))