Hi, You can sellect from SO(relate to 'sold_value') as retrieve from new SO base on current time.
Or If due date time == datetime now && 'due date' != 0: retrieve 'due date' On Sat, Nov 30, 2019, 02:36 Elias Coutinho <[email protected]> wrote: > Good afternoon people! > > I have the following querysets: > > accounts = Account.objects.filter (person__is_representative = False) > .order_by ('due date') > groups = Account.objects.values ('due_date'). annotate (total_day = > Sum ('sold_value')). order_by ('due_date') > > > Accounts Returns a List of Information Sorted by Due Date > groups returns another list sorted and grouped by due date > > I would like django to place a total groups in the template below the line > of accounts when it realizes that the next due date is different from the > previous one, ie totaling by date. > > Can someone help me? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/8ea05b06-1eb1-4de3-8787-6d80570a6283%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/8ea05b06-1eb1-4de3-8787-6d80570a6283%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP5HUWo1o%3DmV%3D0Da27q8HzDp5Gu9T9cHzd9a44hhwghB1LN68A%40mail.gmail.com.

