mirror of
https://github.com/django/django.git
synced 2025-07-15 01:05:17 +00:00
Refs #25226 -- Cloned ArrayField.base_field on deconstruction.
This prevents the base_field from sharing attributes with the one used during migrations.
This commit is contained in:
parent
f4c0eec713
commit
2e55790838
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue