django配置xadmin后使用migrate时显示 in get_field return self.fields_map[field_name]的错误

Operations to perform:

  Apply all migrations: admin, auth, contenttypes, sessions, xadmin

Running migrations:

  Applying admin.0002_logentry_remove_auto_add... OK

  Applying auth.0007_alter_validators_add_error_messages... OK

  Applying auth.0008_alter_user_username_max_length... OK

  Applying xadmin.0004_auto_20180302_1526...Traceback (most recent call last):

  File "D:\anaconda\lib\site-packages\django\db\models\options.py", line 617, in get_field

    return self.fields_map[field_name]

KeyError: <function SET_NULL at 0x0000023ECA148BF8>


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "D:\pycharm软件\PyCharm 5.0.3\helpers\pycharm\django_manage.py", line 41, in <module>


慕粉3235508
浏览 1218回答 0
0回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python