Search djangosnippets.org Sorry no real code here - but useful anyway :) Read the description.