Improving the library to work with Django 1.7

As I wrote in the subject. A small patch has been added to the library to work with Django 1.7.