Django1.7 compatibility