Hi there.

Did you try datatable

Regards,

El mié., 4 nov. 2020 8:30 a. m., lada...@gmail.com <ladamo...@gmail.com>
escribió:

> Hello, Django Users please I need your help and it is urgent,
>
>           I have this code:
> *permit_cy = Permit.objects.values(*
>
> *        'info__date_of_transaction__year', 
> 'info__country_destination__continent'*
> *    ).annotate(volume=Sum('volume')*
> *    ).order_by('info__country_destination__continent'*
>
> *    ).filter(info__date_of_transaction__range=["2019-01-01", "2020-12-31"])*
>
> and this Queryset:
>
> *<QuerySet [{'info__date_of_transaction__year': 2019,
> 'info__country_destination__continent': 'Africa', 'volume':
> Decimal('214.330')}, {'info__date_of_transaction__year': 2020,
> 'info__country_destination__continent': 'Africa', 'volume':
> Decimal('1546.482')}, {'info__date_of_transaction__year': 2020,
> 'info__country_destination__continent': 'Asia/Far East', 'volume':
> Decimal('5678.234')}, {'info__date_of_transaction__year': 2020,
> 'info__country_destination__continent': 'EU', 'volume':
> Decimal('100.282')}]> 2019 2020 2020 2020*
>
> Please how do use it in the template to get something like this,
> [image: Capture.PNG]
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2a7e56f3-e4d1-4cbe-87c6-1e9675aa0ab3n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/2a7e56f3-e4d1-4cbe-87c6-1e9675aa0ab3n%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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL7Dry6kBcLwnfw7naeYr_ROCsGRwzdbHv5mcQWxgEv7G7%2B-8Q%40mail.gmail.com.

Reply via email to