diff --git a/tests/defer_regress/models.py b/tests/defer_regress/models.py
index 0170221..6192557 100644
a
|
b
|
class Proxy(Item):
|
45 | 45 | class SimpleItem(models.Model): |
46 | 46 | name = models.CharField(max_length=15) |
47 | 47 | value = models.IntegerField() |
| 48 | active = models.BooleanField(default=True) |
48 | 49 | |
49 | 50 | def __str__(self): |
50 | 51 | return self.name |
diff --git a/tests/defer_regress/tests.py b/tests/defer_regress/tests.py
index ffb47a8..97d718e 100644
a
|
b
|
class DeferRegressionTest(TestCase):
|
230 | 230 | feature = Feature.objects.create(item=item) |
231 | 231 | SpecialFeature.objects.create(feature=feature) |
232 | 232 | |
233 | | qs = Feature.objects.only('item__name').select_related('item') |
| 233 | qs = Feature.objects.only('item__name', 'item__active').select_related('item') |
234 | 234 | self.assertEqual(len(qs), 1) |
| 235 | self.assertEqual(qs[0].item.active, True) |
235 | 236 | |
236 | 237 | qs = SpecialFeature.objects.only('feature__item__name').select_related('feature__item') |
237 | 238 | self.assertEqual(len(qs), 1) |