class Order(models.Model):
data = models.DateField()
time = models.TimeField(null=True)
status = models.BooleanField(default=False)
order_type = models.CharField(max_length=20)
name = models.CharField(max_length=60, null=True)
count = models.IntegerField(null=True)
comment = models.CharField(max_length=60, null=True)
from django.db.models import Sum
Order.objects.all().aggregate(Sum('count'))