mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #21413 -- resolve_columns fields misalignment
This commit is contained in:
parent
9cc3371a0f
commit
9918c11114
3 changed files with 15 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue