making it work with Django1.7