AttributeError: 'NoneType' object has no attribute 'is_relation'
错误:执行python manage.py makemigrations
解决方法:
1.进去红线框文件中,找到下述方法
增加该语句,print app_label + " " + self.model_name_lower + " " + self.name,修改成下述
再执行python manage.py makemigrations。
2.报下述错误,找到红框的model ,删除该model下的所有migrations文件即可