fix for django 1.5
Merge pull request #3 from natea/master

fix for django 1.5