This problem happens when you add a new model field in a model has already data.
I have this model below:
I need to add another field in this model,
If I migrate my models, I will get this issue.
So, how to solve this issue.
1. Adding 'null = True' to new field.
Now we can migrate the models, and the issue will be solved.
2. Adding 'default = " " ' to new filed.
If these two ways not working with you can try :
3.Deleting and returning the model
Before talking about this way, I'd to warn you that this way will delete your model data.
so you need to delete your model class and do migrate your model then need to return the model and do migrate too
I hope this article helps you.
English today is not an art to be mastered it's just a tool to use to get a result