diff options
| author | David-Wobrock <david.wobrock@gmail.com> | 2020-10-23 23:56:12 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-11-02 20:11:58 +0100 |
| commit | cfc7cd6513a72b8c5898c264d04bdf49f897a1de (patch) | |
| tree | 39496817db45034882aa5d5b9434354d7434ad49 /tests/model_fields | |
| parent | 4ebd633350ac07091a23c0f0c3eac3aa691cab05 (diff) | |
Fixed #32132 -- Fixed column types in m2m intermediary tables for Positive(Big/Small)IntegerFields.
Diffstat (limited to 'tests/model_fields')
| -rw-r--r-- | tests/model_fields/test_integerfield.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/model_fields/test_integerfield.py b/tests/model_fields/test_integerfield.py index bc370f18e2..13b18d967c 100644 --- a/tests/model_fields/test_integerfield.py +++ b/tests/model_fields/test_integerfield.py @@ -176,6 +176,11 @@ class BigIntegerFieldTests(IntegerFieldTests): class PositiveSmallIntegerFieldTests(IntegerFieldTests): model = PositiveSmallIntegerModel documented_range = (0, 32767) + rel_db_type_class = ( + models.PositiveSmallIntegerField + if connection.features.related_fields_match_type + else models.SmallIntegerField + ) class PositiveIntegerFieldTests(IntegerFieldTests): @@ -198,6 +203,11 @@ class PositiveIntegerFieldTests(IntegerFieldTests): class PositiveBigIntegerFieldTests(IntegerFieldTests): model = PositiveBigIntegerModel documented_range = (0, 9223372036854775807) + rel_db_type_class = ( + models.PositiveBigIntegerField + if connection.features.related_fields_match_type + else models.BigIntegerField + ) class ValidationTests(SimpleTestCase): |
