Address problem in tests for django 1.3.X.