<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def total_tax(self):
 """Returns the sum of all Tax objects."""

        q = Tax.objects.filter(receipt=self).aggregate(total=Sum('amount'))
        return q['total'] or 0