                  'display': EMPTY_CHANGELIST_VALUE,
              }
  
  FieldListFilter.register(lambda f: (
          bool(f.rel) if hasattr(f, 'rel') else
          isinstance(f, models.related.RelatedObject)), RelatedFieldListFilter)
  
  
  class BooleanFieldListFilter(FieldListFilter):
      def __init__(self, field, request, params, model, model_admin, field_path):
          self.lookup_kwarg = '%s__exact' % field_path
 
</s> remove                         self.lookup_kwarg2: 'True',
 </s> add                     self.lookup_kwarg2: 'True', </s> remove                                     self.lookup_kwarg: lookup}),
 </s> add                     self.lookup_kwarg: lookup}), </s> remove                                     param_dict, [self.field_generic]),
 </s> add                     param_dict, [self.field_generic]), </s> remove             "class_attrib": format_html(' class="{0}"', ' '.join(th_classes))
                            if th_classes else '',
 </s> add             "class_attrib": format_html(' class="{0}"', ' '.join(th_classes)) if th_classes else '', </s> remove         return "PK = %d, base_name = %s, derived_name = %s" \
                % (self.customPK, self.base_name, self.derived_name)
 </s> add         return "PK = %d, base_name = %s, derived_name = %s" % (
            self.customPK, self.base_name, self.derived_name)
    bool(f.rel) if hasattr(f, 'rel') else
    isinstance(f, models.related.RelatedObject)), RelatedFieldListFilter)
                  'display': EMPTY_CHANGELIST_VALUE,
              }
  
  FieldListFilter.register(lambda f: (
    bool(f.rel) if hasattr(f, 'rel') else
    isinstance(f, models.related.RelatedObject)), RelatedFieldListFilter)
    bool(f.rel) if hasattr(f, 'rel') else
    isinstance(f, models.related.RelatedObject)), RelatedFieldListFilter)
  
  
  class BooleanFieldListFilter(FieldListFilter):
      def __init__(self, field, request, params, model, model_admin, field_path):
          self.lookup_kwarg = '%s__exact' % field_path
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21288 -- Fixed E126 pep8 warnings 
django/contrib/admin/filters.py