Add compatibility with Django 1.6.
Merge pull request #97 from jnns/master

Add compatibility with Django 1.6.