diff options
| author | Simon Charette <charettes@users.noreply.github.com> | 2017-01-14 06:31:34 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-14 06:31:34 -0500 |
| commit | 2e55790838a75bf25a11115536dae57880cfccfb (patch) | |
| tree | a4bf855609b0f9de5719c1acc2f209532104486d /tests/postgres_tests/test_array.py | |
| parent | f4c0eec713a6ffe7616fdc5f4744b40110d4fed1 (diff) | |
Refs #25226 -- Cloned ArrayField.base_field on deconstruction.
This prevents the base_field from sharing attributes with the one used
during migrations.
Diffstat (limited to 'tests/postgres_tests/test_array.py')
| -rw-r--r-- | tests/postgres_tests/test_array.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py index 886a983180..69ae5f3cda 100644 --- a/tests/postgres_tests/test_array.py +++ b/tests/postgres_tests/test_array.py @@ -441,6 +441,7 @@ class TestMigrations(TransactionTestCase): name, path, args, kwargs = field.deconstruct() new = ArrayField(*args, **kwargs) self.assertEqual(type(new.base_field), type(field.base_field)) + self.assertIsNot(new.base_field, field.base_field) def test_deconstruct_with_size(self): field = ArrayField(models.IntegerField(), size=3) |
