Issue #373 : Fix bug with get_real_instances on empty base_result_objects
This commit is contained in:
committed by
Diederik van der Boor
parent
26fac56e31
commit
f06a02a3d0
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user