def __init__(self, name, model, **options):
        super(QueryAjaxModelLoader, self).__init__(name, options)

        self.model = model
        self.fields = options.get('fields')

        if not self.fields:
            raise ValueError('AJAX loading requires `fields` to be specified for %s.%s' % (model, self.name))

        self._cached_fields = self._process_fields()

        self.pk = get_primary_key(model)
A view that redirects all requests to the GET view
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/peewee/ajax.py/QueryAjaxModelLoader.__init__--crossover with--dataset/ETHPy150Open django/django/tests/test_client/views.py/redirect_view