Fix tests for Django 1.3.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>