(self, request)
return search_fields
Automatically creates admin search fields for every field listed in search_by_fields.
            Any fields in the extra_search_fields attribute are added at the end of search_fields.
Automatically creates admin search fields for every field listed in search_by_fields.
            Any fields in the extra_search_fields attribute are added at the end of search_fields.
Automatically creates admin search fields for every field listed in search_by_fields . Any fields in the extra_search_fields attribute are added at the end of search_fields .
def get_search_fields(self, request):
        """
            Automatically creates admin search fields for every field listed in search_by_fields.
            Any fields in the extra_search_fields attribute are added at the end of search_fields.
        """
        search_fields = super(ExtendedModelAdminMixin, self).get_search_fields(request)
        if not isinstance(self.search_fields, list):
            combined_search_fields = ([field.name for field in self.model._meta.fields if field.get_internal_type() in
                                       self.search_by_fields] +
                                      self.extra_search_fields
                                      )
            search_fields = remove_dupes(combined_search_fields)
        return search_fields
def get_search_fields ( self , request ) : search_fields = super ( ExtendedModelAdminMixin , self ) . get_search_fields ( request ) if not isinstance ( self . search_fields , list ) : combined_search_fields = ( [ field . name for field in self . model . _meta . fields if field . get_internal_type ( ) in self . search_by_fields ] + self . extra_search_fields ) search_fields = remove_dupes ( combined_search_fields ) return search_fields