Support earlier Django versions