views.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:nhsuk-content-store 作者: nhsuk 项目源码 文件源码
def view_draft(request, page_id):
    """
    Redirects to revisions_view using the latest revision of the page with id == `page_id`.
    """
    page = get_object_or_404(Page, id=page_id)
    revision = page.get_latest_revision()

    return redirect('wagtailadmin_pages:revisions_view', page.id, revision.id)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号