新聞中心
這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
Django:Thevalueof'list_display[3]'refersto'account_admin',whichisnotacall
初學(xué)Django,Django 修改models.py 字段后執(zhí)行makemigrations報(bào)錯(cuò),報(bào)錯(cuò)信息:
專(zhuān)注于為中小企業(yè)提供成都網(wǎng)站制作、成都做網(wǎng)站服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)中牟免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動(dòng)了上1000+企業(yè)的穩(wěn)健成長(zhǎng),幫助中小企業(yè)通過(guò)網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。
: (admin.E108) The value of 'list_display[3]' refers to 'account_admin', which is not a callable, an attribute of 'AccountAdmin', or an attribute or method on 'test2.Account'. : (admin.E108) The value of 'list_display[4]' refers to 'password_admin', which is not a callable, an attribute of 'AccountAdmin', or an attribute or method on 'test2.Account'.
第一遇到有點(diǎn)手足無(wú)措,搜索了一波,在這里找到了答案。
原來(lái)是我在admin.py中定義了AccountAdmin,
![Django:The value of 'list_display[3]' refers to 'account_admin', which is not a call](/upload/otherpic49/91018.jpg)
修改list_display中的account_admin,password_admin 即可解決,其實(shí)報(bào)錯(cuò)中的信息已經(jīng)很明確了。
標(biāo)題名稱(chēng):Django:Thevalueof'list_display[3]'refersto'account_admin',whichisnotacall
本文網(wǎng)址:http://www.dlmjj.cn/article/goiijp.html


咨詢
建站咨詢
