Changes between Initial Version and Version 1 of Ticket #28551
- Timestamp:
- Sep 4, 2017, 9:10:14 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28551
- Property Component Uncategorized → Database layer (models, ORM)
- Property Type Uncategorized → Bug
-
Ticket #28551 – Description
initial v1 13 13 The following test: 14 14 {{{ 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 15 a1 = A() 16 a1.save() 17 a2 = A() 18 a2.save() 19 b1 = B() 20 b1.save() 21 b1.a.add(a1) 22 b1.save() 23 b2 = B() 24 b2.save() 25 b2.a.add(a2) 26 b2.save() 27 c1 = C(a=a1, b=b1) 28 c1.save() 29 c2 = C(a=a1, b=b2) 30 c2.save() 31 self.assertEqual(1, C.objects.filter(b__a=F('a')).count()) 32 self.assertEqual(1, C.objects.exclude(b__a=F('a')).count()) 33 33 }}} 34 34 Fails with the following error: