ERRORS: : (admin.E108) The value of 'list_display[3]'


修改了一個display參數,Django不能啟動,報錯為:

django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:

ERRORS:
<class 'myApp.admin.GradesAdmin'>: (admin.E108) The value of 'list_display[3]' refers to 'ggirlbum', which is not a callable, an attribute of 'GradesAdmin', or an
attribute or method on 'myApp.Grades'.

 

翻譯一下:

“list_display[3]”的值是指“ggirlbum”,它不是可調用的、“GradesAdmin”屬性或

“myApp.Grades”上的屬性或方法。

然后我就找到錯誤了,全是自己手抖寫錯了ggirlbum:

list_display = ['pk', 'gname', 'gdate', 'ggirlbum', 'gboynum', 'isDelete']

改成↓↓↓↓↓↓↓↓↓↓↓↓↓

list_display = ['pk', 'gname', 'gdate', 'ggirlnum', 'gboynum', 'isDelete']

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM