fix: compatibility for django>=1.6
fix: oops, forget to import django
Merge pull request #5 from chenhouwu/master

fix: compatibility for django>=1.6