[Fixes #13] Make test suite compatible with Django 1.6