def _get_districtlist_cache_keys_and_controllers(cls, years): cache_keys_and_controllers = [] for year in filter(None, years): cache_keys_and_controllers.append( (ApiDistrictListController.get_cache_key_from_format(year), ApiDistrictListController)) return cache_keys_and_controllers
def _get_districtlist_cache_keys_and_controllers(cls, years): cache_keys_and_controllers = [] for year in filter(None, years): cache_keys_and_controllers.append( (ApiDistrictListController.get_cache_key_from_format(year), ApiDistrictListController) ) return cache_keys_and_controllers