I decided to implement a display of the time spent on work. To do this, you need to add some code to views.py:
current_month = datetime.now().month
minutes = Addinfo.objects.filter(date_added__month=current_month).values_list('work_minutes', flat=True)
summa = sum([int(minute) for minute in minutes])
hours = (summa // 60)
Don’t forget add new variables to context dict.