Fixed compatibility with Django version 1.5+
Merge pull request #2 from Frai/master

Fixed compatibility with Django version 1.5+