Commits

Waldemar Kornewald committed 5f5c1f0

extended select_related unit test

Comments (0)

Files changed (1)

djangotoolbox/tests.py

         source = Source.objects.all().select_related()[0]
         self.assertEqual(source.target.pk, target.pk)
         self.assertEqual(source.target.index, target.index)
+        source = Source.objects.all().select_related('target')[0]
+        self.assertEqual(source.target.pk, target.pk)
+        self.assertEqual(source.target.index, target.index)