I\'m thinking a bit about the concept of Django aggregates. I don\'t quite \"get\" how they can be used in my case. Basically i have a three-tier hierarchy of objects in my mode
The templates do not let you call functions that take arguments. See here for what they let you do.
The canonical way to deal with this would be to either add some helper methods/managers to your models or to create a custom template tag or filter.