Make tests work under Python 2.6 + Django 1.2