class AlterField(model_name, name, field, preserve_default=True) [source]
Alters a field’s definition, including changes to its type, null, unique, db_column and other field attributes.
The preserve_default argument indicates whether the field’s default value is permanent and should be baked into the project state (True), or if it is temporary and just for this migration (False) - usually because the migration is altering a nullable field to a non-nullable one and needs a default value to pu