fix unit test with different django version