Update for latest django versions