1
0
mirror of https://github.com/django/django.git synced 2025-01-18 14:24:39 +00:00

Refs #35560 -- Corrected required feature flags in GeneratedModelUniqueConstraint.

This commit is contained in:
Mariusz Felisiak 2024-07-14 19:38:24 +02:00 committed by Sarah Boyce
parent dfd63ff434
commit 2d3bb414cf

View File

@ -667,7 +667,7 @@ class GeneratedModelUniqueConstraint(GeneratedModelBase):
class Meta: class Meta:
required_db_features = { required_db_features = {
"supports_stored_generated_columns", "supports_stored_generated_columns",
"supports_table_check_constraints", "supports_expression_indexes",
} }
constraints = [ constraints = [
models.UniqueConstraint(F("a"), name="Generated model unique constraint a"), models.UniqueConstraint(F("a"), name="Generated model unique constraint a"),