                  result_id = escapejs(value)
                  link_or_text = format_html(
                      '<a href="{0}"{1}>{2}</a>',
                      url,
                      format_html(' onclick="opener.dismissRelatedLookupPopup(window, &#39;{0}&#39;); return false;"', result_id)
                          if cl.is_popup else '',
                      result_repr)
  
              yield format_html('<{0}{1}>{2}</{3}>',
                                table_tag,
                                row_class,
 
</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                         form[cl.model._meta.pk.name].is_hidden)):
 </s> add                     form[cl.model._meta.pk.name].is_hidden)): </s> remove         bool(f.rel) if hasattr(f, 'rel') else
        isinstance(f, models.related.RelatedObject)), RelatedFieldListFilter)
 </s> add     bool(f.rel) if hasattr(f, 'rel') else
    isinstance(f, models.related.RelatedObject)), RelatedFieldListFilter) </s> remove                             related_modeladmin.has_add_permission(request))
 </s> add                     related_modeladmin.has_add_permission(request)) </s> remove             return self.add_view(request, form_url=reverse('admin:%s_%s_add' %
                                    (opts.app_label, opts.model_name),
                                    current_app=self.admin_site.name))
 </s> add             return self.add_view(request, form_url=reverse('admin:%s_%s_add' % (
                opts.app_label, opts.model_name),
                current_app=self.admin_site.name))
                    format_html(' onclick="opener.dismissRelatedLookupPopup(window, &#39;{0}&#39;); return false;"', result_id) if cl.is_popup else '',
                  result_id = escapejs(value)
                  link_or_text = format_html(
                      '<a href="{0}"{1}>{2}</a>',
                      url,
                    format_html(' onclick="opener.dismissRelatedLookupPopup(window, &#39;{0}&#39;); return false;"', result_id) if cl.is_popup else '',
                    format_html(' onclick="opener.dismissRelatedLookupPopup(window, &#39;{0}&#39;); return false;"', result_id) if cl.is_popup else '',
                      result_repr)
  
              yield format_html('<{0}{1}>{2}</{3}>',
                                table_tag,
                                row_class,
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21288 -- Fixed E126 pep8 warnings 
django/contrib/admin/templatetags/admin_list.py