fix for Django 1.6.2
Merge pull request #2 from grzybniak/master

Fix for Django 1.6.2