The Development version of Django has aggregate functions like Avg, Count, Max, Min, StdDev, Sum, and Variance (link text). Is there a reason Median is missing from the list
A strong possibility is that median is not part of standard SQL.
Also, it requires a sort, making it quite expensive to compute.