def _get_team_event_awards_cache_keys_and_controllers(cls, team_keys, event_keys): cache_keys_and_controllers = [] for team_key in filter(None, team_keys): for event_key in filter(None, event_keys): cache_keys_and_controllers.append((ApiTeamEventAwardsController.get_cache_key_from_format(team_key.id(), event_key.id()), ApiTeamEventAwardsController)) cache_keys_and_controllers.append((ApiTeamHistoryAwardsController.get_cache_key_from_format(team_key.id()), ApiTeamHistoryAwardsController)) return cache_keys_and_controllers