问题
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