Changes between Initial Version and Version 2 of Ticket #31217


Ignore:
Timestamp:
Jan 30, 2020, 12:43:12 AM (4 years ago)
Author:
Mariusz Felisiak
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31217

    • Property Owner changed from nobody to Mariusz Felisiak
    • Property Status newassigned
  • Ticket #31217 – Description

    initial v2  
    55        self.assertEqual(
    66            list(Book.objects.annotate(
    7                 max_age=Count('authors__age'),
     7                min_age=Min('authors__age'),
    88            ).annotate(
    9                 max_related_age=Coalesce('max_age', 'contact__age'),
    10             ).order_by('max_related_age').values_list('pk', flat=True)),
    11             [self.b6.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],
    1212        )
    1313}}}
Back to Top