Updating to work with the lastest version of Django.