Changes between Initial Version and Version 2 of Ticket #31217
- Timestamp:
- Jan 30, 2020, 12:43:12 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31217
- Property Owner changed from to
- Property Status new → assigned
-
Ticket #31217 – Description
initial v2 5 5 self.assertEqual( 6 6 list(Book.objects.annotate( 7 m ax_age=Count('authors__age'),7 min_age=Min('authors__age'), 8 8 ).annotate( 9 m ax_related_age=Coalesce('max_age', 'contact__age'),10 ).order_by('m ax_related_age').values_list('pk', flat=True)),11 [self.b 6.pk, self.b3.pk, self.b2.pk, self.b1.pk, self.b5.pk, self.b4.pk],9 min_related_age=Coalesce('min_age', 'contact__age'), 10 ).order_by('min_related_age').values_list('pk', flat=True)), 11 [self.b4.pk, self.b3.pk, self.b1.pk, self.b2.pk, self.b5.pk, self.b6.pk], 12 12 ) 13 13 }}}