3👍
SORT :
DataForecast.objects.all().order_by('id')
sort query with .latest()
or .order_by('-date')
or by the datefield (the one you print to chart) instead of id.
Source:stackexchange.com
3👍
SORT :
DataForecast.objects.all().order_by('id')
sort query with .latest()
or .order_by('-date')
or by the datefield (the one you print to chart) instead of id.