<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(self):
 """Total cost of the order """

        total = 0
        for item in self.items.all():
            total += item.total
        return total