Hey,
Back when the ORM aggregate support was a patch in trac I used to
create custom aggregate objects that looked like this:
class Date(Aggregate):
pass
class DateHour(Aggregate):
def __init__(self, lookup):
super(DateHour, self).__init__(lookup)
self.sql_template = '(DATE(${field}) + INTERVAL HOUR(${field})
HOUR)'
However now that aggregate support has made its way into trunk the api
seems to have changed a bit. After reading the aggregate module it
looks to me like I'd have to reimplement the Aggregate class myself in
order to have this same kind of functionality. Is there a supported
way of creating custom aggregate classes for use with the trunk ORM?
I'd appreciate any help that anybody can offer on this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---