Consistent use of django version check.