Changes between Initial Version and Version 1 of Ticket #31580
- Timestamp:
- May 13, 2020, 6:00:01 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31580 – Description
initial v1 24 24 qs2 = qs.filter(name='Sam1').annotate(rank=Value(1, IntegerField())) 25 25 qs = qs1.union(qs2) 26 qs = qs.order_by('name').distinct('name') # THIS DISTINCT DO NESN'T WORK26 qs = qs.order_by('name').distinct('name') # THIS DISTINCT DOESN'T WORK 27 27 self.assertEqual(qs.count(), 2) 28 28 }}}