Misc. utilities for Django