I am trying to calculate average time of all records in database named time. The database i am using is sqlite3.
#models.py i have
time=models.TimeField()
#vies.py i am trying to get this by using
time_all = Models.objects.values_list('time')
time_avg = Avg(time_all)
But time_avg is still a list of all time values