Ticket #23739: 23739-test.diff

File 23739-test.diff, 572 bytes (added by Tim Graham, 10 years ago)
  • tests/defer_regress/tests.py

    diff --git a/tests/defer_regress/tests.py b/tests/defer_regress/tests.py
    index f2a015a..d41b8bf 100644
    a b class DeferRegressionTest(TestCase):  
    252252        deferred_cls = deferred_class_factory(Item, ())
    253253        self.assertFalse(deferred_cls._deferred)
    254254
     255    def test_select_related_defer_related_name(self):
     256        list(Child.objects.select_related('other').defer('other__name'))
     257
    255258
    256259class DeferAnnotateSelectRelatedTest(TestCase):
    257260    def test_defer_annotate_select_related(self):
Back to Top