Use absolute name imports for tests if django version is 1.6+.