def total_donations(self):
     from models.donations import Donation
     total = 0
     for donation in Donation.select().where(Donation.image_id == self.id):
         total = total + donation.amount
     return round(total)