Issue #373 : Fix bug with get_real_instances on empty base_result_objects

This commit is contained in:
gtors authored and Diederik van der Boor committed 2019-07-11 21:59:46 +02:00
1 parent 26fac56e31
commit f06a02a3d0
2 files changed
+9 -1

No files matched your search

+8
View File
@@ -332,6 +332,14 @@ class PolymorphicTests(TransactionTestCase):
transform=lambda o: o.__class__,
)
# from empty list
objects = Model2A.objects.get_real_instances([])
self.assertQuerysetEqual(
objects,
[],
transform=lambda o: o.__class__,
)
def test_translate_polymorphic_q_object(self):
self.create_model2abcd()