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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.