Django 1.7 remove field. Unknown field(s) (field) specified for Model

折月煮酒 提交于 2020-01-25 17:35:08

问题


I have already many models in my application. I have already used migrations in my project.

But when I want to remove a field from a model, the makemigration command show me :

Unknown field(s) (field) specified for Model

Where (fields) is equal to the field's name and Model is the model's name ?

Do you have any solution to resolve this issue ?


回答1:


You may try modifying auto_now and auto_now_add with default = 'xxx', then the field can be called



来源:https://stackoverflow.com/questions/27585916/django-1-7-remove-field-unknown-fields-field-specified-for-model

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!