def _get_helpers(self):
        if not hasattr(settings, 'DAGUERRE_PREADJUSTMENTS'):
            raise CommandError(NO_ADJUSTMENTS)
        dp = settings.DAGUERRE_PREADJUSTMENTS
        helpers = []
        try:
            for (model_or_iterable, adjustments, lookup) in dp:
                if isinstance(model_or_iterable, six.string_types):
                    app_label, model_name = model_or_iterable.split('.')
                    model_or_iterable = get_model(app_label, model_name)
                if (isinstance(model_or_iterable, six.class_types) and
                        issubclass(model_or_iterable, Model)):
                    iterable = model_or_iterable.objects.all()
                elif isinstance(model_or_iterable, QuerySet):
                    iterable = model_or_iterable._clone()
                else:
                    iterable = model_or_iterable

                helper = AdjustmentHelper(iterable, lookup=lookup, generate=True)
                for adjustment in adjustments:
                    helper.adjust(adjustment)
                helper._finalize()
                helpers.append(helper)
        except (ValueError, __HOLE__, LookupError):
            raise CommandError(BAD_STRUCTURE)

        return helpers
dataset/ETHPy150Open littleweaver/django-daguerre/daguerre/management/commands/_daguerre_preadjust.py/Command._get_helpers