def all_as_schedule(self):
        debug('DatabaseScheduler: Fetching database schedule')
        s = {}
        for model in self.Model.objects.enabled():
            try:
                s[model.name] = self.Entry(model)
            except __HOLE__:
                pass
        return s
dataset/ETHPy150Open celery/django-celery/djcelery/schedulers.py/DatabaseScheduler.all_as_schedule