Make it work with django 1.7.x
Merge pull request #1 from tomaszroszko/master

Make it work with django 1.7.x