Don't look at non-existent attr on Django 1.6+
Merge pull request #3 from educreations/django-16

Does not work with Django 1.6