def formfield_for_reference_listfield(self, db_field, request=None, **kwargs):
        if db_field.name in self.raw_id_fields:
            kwargs['widget'] = MultiReferenceRawIdWidget(
                db_field.field.rel, self.admin_site)
            kwargs['help_text'] = ''
        elif db_field.name in (list(self.filter_vertical) + list(self.filter_horizontal)):
            kwargs['widget'] = widgets.FilteredSelectMultiple(
                forms.forms.pretty_name(db_field.name), (db_field.name in self.filter_vertical))

        return formfield(db_field, **kwargs)
This method is more complicated than the ones in the
dataset/ETHPy150Open jschrewe/django-mongoadmin/mongoadmin/options.py/MongoFormFieldMixin.formfield_for_reference_listfield--crossover with--dataset/ETHPy150Open kivy/kivy/kivy/adapters/listadapter.py/ListAdapter.create_view