summaryrefslogtreecommitdiff
path: root/tests/model_inheritance_regress
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2013-11-17 15:50:14 +0200
committerAnssi Kääriäinen <akaariai@gmail.com>2014-01-12 18:07:39 +0200
commit9918c11114ac3ec9622631558ef26ebf3919cb69 (patch)
treed2ee4f4a088b91e153ff293e2ff3b009061f06ec /tests/model_inheritance_regress
parent9cc3371a0f45894de12d2fb60a57afd111fb9c3e (diff)
downloaddjango-9918c11114ac3ec9622631558ef26ebf3919cb69.tar.gz
Fixed #21413 -- resolve_columns fields misalignment
Diffstat (limited to 'tests/model_inheritance_regress')
-rw-r--r--tests/model_inheritance_regress/tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/model_inheritance_regress/tests.py b/tests/model_inheritance_regress/tests.py
index e816fe6bc7..211877d7c6 100644
--- a/tests/model_inheritance_regress/tests.py
+++ b/tests/model_inheritance_regress/tests.py
@@ -460,3 +460,9 @@ class ModelInheritanceTest(TestCase):
)
Senator.objects.get(pk=senator.pk)
+
+ def test_inheritance_resolve_columns(self):
+ Restaurant.objects.create(name='Bobs Cafe', address="Somewhere",
+ serves_pizza=True, serves_hot_dogs=True)
+ p = Place.objects.all().select_related('restaurant')[0]
+ self.assertIsInstance(p.restaurant.serves_pizza, bool)