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

BaseDatabaseSchemaEditor.alter_unique_together(model, old_unique_together, new_unique_together) [source]

Changes a model’s unique_together value; this will add or remove unique constraints from the model’s table until they match the new value.

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

Please login to continue.