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
FWIW, you can extend PostgreSQL 8.4 and above to have a median aggregate function with these code snippets.
Other code snippets (which work for older versions of PostgreSQL) are shown here. Be sure to read the comments for this resource.