ERRORS: <class 'app01.admin.RoleAdmin'>: (admin.E108) The value of 'list_display[1]' refers to 'title', which is not a callable, an attribute of 'RoleAdmin', or an attribute or method on 'app01.Role'.

今天在django中报错,硕士RoleAdmin中无法找到list_display列表中的字段title,回头一看  原来在models.py中定义表的字段时,就没有title,而是tilte

所以在RoleAdmin中:‘title’修改成‘tilte’

 

posted @ 2019-06-17 16:40  醉醺醺的  阅读(759)  评论(0编辑  收藏  举报