fix testcase for django < 1.4