Fix Django tests under Python 2.6
Attempt to fix PDF generation on ReadTheDocs