mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed #21413 -- resolve_columns fields misalignment
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user