format code
new aggregate function + monkey patch django