I know the short answer because I tried it. Is there any way to accomplish this though (even if only on account of a hack)?
class Ticket(models.Model): a
I have a similar scenario and want exactly the same feature. I solved it trivially with the following line:
... return sum(lt.cost for lt in self.lineitem_set)