Patches and improvements to Django