

@factory.lazy_attribute
def source(self):
    date_slug = self.start_date.strftime('%Y%m%d')
    return '{}__{}.csv'.format(self.state, date_slug)

dataset/ETHPy150Open openelections/openelections-core/openelex/tests/factories.py RawResultFactory.source/original