db.backends.base.schema.BaseDatabaseSchemaEditor.remove_field()

BaseDatabaseSchemaEditor.remove_field(model, field) [source]

Removes the column(s) representing the field from the model’s table, along with any unique constraints, foreign key constraints, or indexes caused by that field.

If the field is a ManyToManyField without a value for through, it will remove the table created to track the relationship. If through is provided, it is a no-op.

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

Please login to continue.