def was_published_recently(self):
        return self.pub_date >= timezone.now() - datetime.timedelta(days=1)
dataset/ETHPy150Open lsaffre/lino/docs/tutorials/polls/polls/models.py/Poll.was_published_recently/original