admin.py 文件源码

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

项目:pypers 作者: rossant 项目源码 文件源码
def title_short(self, obj):
        s = truncatechars(obj.title, 64)
        if not obj.pdf_path:
            return s
        path = reverse('get_paper')
        return format_html('<a href="%s?paper_id=%d" target="_blank">%s</a>' %
                           (path, obj.id, s))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号