fix for django 1.7
Merge pull request #10 from kviktor/master

Fix for Django 1.7