diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-07-14 19:38:24 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-07-15 10:22:52 +0200 |
| commit | ebcbf731538c7998d745a7b6fb2ee5c93d9fdb62 (patch) | |
| tree | e364ce5eed2c70362dabb882696b43d1333ac360 /tests/model_fields | |
| parent | d02ef7543143920f94209919e4246c2c047fc27d (diff) | |
[5.1.x] Refs #35560 -- Corrected required feature flags in GeneratedModelUniqueConstraint.
Backport of 2d3bb414cfb2778cc64f22e7203102d7389f81e6 from main.
Diffstat (limited to 'tests/model_fields')
| -rw-r--r-- | tests/model_fields/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index d9811ba164..5dfed00329 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -667,7 +667,7 @@ class GeneratedModelUniqueConstraint(GeneratedModelBase): class Meta: required_db_features = { "supports_stored_generated_columns", - "supports_table_check_constraints", + "supports_expression_indexes", } constraints = [ models.UniqueConstraint(F("a"), name="Generated model unique constraint a"), |
