(podcast)
return {field: getattr(podcast, field) for field in INDEX_FIELDS.keys()}
Returns a dict of the fields to be included in the search index
Returns a dict of the fields to be included in the search index
Returns a dict of the fields to be included in the search index
def get_index_fields(podcast):
    """Returns a dict of the fields to be included in the search index"""
    return {field: getattr(podcast, field) for field in INDEX_FIELDS.keys()}
def get_index_fields ( podcast ) : return { field : getattr ( podcast , field ) for field in INDEX_FIELDS . keys ( ) }