Django1.6 compatibility