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’