added django 1.7 support

Hi!

I fixed bug described [here](http://stackoverflow.com/a/25648427/1338790), but i have no idea did i break anything. Works for me.