fix Django 1.5 compatibility
Merge pull request #2 from Bers/master

Django 1.5 compatibility