not null constraint failed django modelform code example
Example: not null constraint failed django
You must create a migration, where you will specify default value for a new field, since you don't want it to be null. If null is not required, simply add null=True and create and run migration.