Adequation to new django versions