@cached_property
    def previous_event(self):
        dt = self.next_time.dt_end
        try:
            return Event.objects.until_datetime(dt).filter(calendar=self.calendar)[0]
        except __HOLE__:
            return None
dataset/ETHPy150Open python/pythondotorg/events/models.py/Event.previous_event