BaseDatabaseSchemaEditor.alter_field(model, old_field, new_field, strict=False) [source]
This transforms the field on the model from the old field to the new one. This includes changing the name of the column (the db_column attribute), changing the type of the field (if the field class changes), changing the NULL status of the field, adding or removing field-only unique constraints and indexes, changing primary key, and changing the destination of ForeignKey constraints.
The most common tran