summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/postgres_tests/test_array.py')
-rw-r--r--tests/postgres_tests/test_array.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py
index d152f76b3d..0a41bf1bdd 100644
--- a/tests/postgres_tests/test_array.py
+++ b/tests/postgres_tests/test_array.py
@@ -97,6 +97,12 @@ class TestSaveLoad(PostgreSQLTestCase):
self.assertEqual(instance.uuids, loaded.uuids)
self.assertEqual(instance.decimals, loaded.decimals)
+ def test_model_set_on_base_field(self):
+ instance = IntegerArrayModel()
+ field = instance._meta.get_field('field')
+ self.assertEqual(field.model, IntegerArrayModel)
+ self.assertEqual(field.base_field.model, IntegerArrayModel)
+
class TestQuerying(PostgreSQLTestCase):