adds django 1.6 compatibility
Merge pull request #2 from czpython/master

adds django 1.6 compatibility