Fixes all deprecation warnings for Django 1.5.  Thanks, shibz