Made django cms 2.4 compatible