db.migrations.operations.RemoveField

class RemoveField(model_name, name) [source]

Removes a field from a model.

Bear in mind that when reversed, this is actually adding a field to a model. The operation is reversible (apart from any data loss, which of course is irreversible) if the field is nullable or if it has a default value that can be used to populate the recreated column. If the field is not nullable and does not have a default value, the operation is irreversible.

doc_Django
2016-10-09 18:35:10
Comments
Leave a Comment

Please login to continue.