(self, request)
return list_filter
Automatically creates admin filters for every field listed in filter_by_fields attribute (defaults to
            BooleanField, NullBooleanField, USStateField, as well as any field with choices (ex. IntegerField with
            choices=SOMETHING) and any ForeignKey where the total number of objects is less than or equal to the
            max_related_objects attribute, which defaults to 100.
            Any fields in the extra_list_filter attribute are added at the end of list_filter.
Automatically creates admin filters for every field listed in filter_by_fields attribute (defaults to
            BooleanField, NullBooleanField, USStateField, as well as any field with choices (ex. IntegerField with
            choices=SOMETHING) and any ForeignKey where the total number of objects is less than or equal to the
            max_related_objects attribute, which defaults to 100.
            Any fields in the extra_list_filter attribute are added at the end of list_filter.
Automatically creates admin filters for every field listed in filter_by_fields attribute ( defaults to BooleanField NullBooleanField USStateField as well as any field with choices ( ex . IntegerField with choices = SOMETHING ) and any ForeignKey where the total number of objects is less than or equal to the max_related_objects attribute which defaults to 100 . Any fields in the extra_list_filter attribute are added at the end of list_filter .
def get_list_filter(self, request):
        """
            Automatically creates admin filters for every field listed in filter_by_fields attribute (defaults to
            BooleanField, NullBooleanField, USStateField, as well as any field with choices (ex. IntegerField with
            choices=SOMETHING) and any ForeignKey where the total number of objects is less than or equal to the
            max_related_objects attribute, which defaults to 100.
            Any fields in the extra_list_filter attribute are added at the end of list_filter.
        """
        list_filter = super(ExtendedModelAdminMixin, self).get_list_filter(request)
        if not isinstance(list_filter, list):
            combined_list_filter = ([field.name for field in self.model._meta.fields if
                                     (field.get_internal_type() in self.filter_by_fields) or
                                     (number_field_choices(field) > 0) or
                                     (field.get_internal_type() == "ForeignKey" and
                                      field.rel.to.objects.count() <= self.max_related_objects)] +
                                    self.extra_list_filter
                                    )
            list_filter = remove_dupes(combined_list_filter)
        return list_filter
def get_list_filter ( self , request ) : list_filter = super ( ExtendedModelAdminMixin , self ) . get_list_filter ( request ) if not isinstance ( list_filter , list ) : combined_list_filter = ( [ field . name for field in self . model . _meta . fields if ( field . get_internal_type ( ) in self . filter_by_fields ) or ( number_field_choices ( field ) > 0 ) or ( field . get_internal_type ( ) == "ForeignKey" and field . rel . to . objects . count ( ) <= self . max_related_objects ) ] + self . extra_list_filter ) list_filter = remove_dupes ( combined_list_filter ) return list_filter