Fix check for django version