Fix breaking tests for python3/Django1.7.