          self.assertContains(response,
              '<body class="app-admin_views model-section ')
  
  try:
      import docutils
  except ImportError:
      docutils = None
  
  
 
</s> remove         row_class = ''
 </s> add         row_classes = ['field-%s' % field_name] </s> remove         self.assertContains(response, '<th><a href="%s">%d</a></th>' % (link1, story1.id), 1)
        self.assertContains(response, '<th><a href="%s">%d</a></th>' % (link2, story2.id), 1)
 </s> add         self.assertContains(response, '<th class="field-id"><a href="%s">%d</a></th>' % (link1, story1.id), 1)
        self.assertContains(response, '<th class="field-id"><a href="%s">%d</a></th>' % (link2, story2.id), 1) </s> remove         self.assertContains(response, '<td>%d</td>' % story1.id, 1)
        self.assertContains(response, '<td>%d</td>' % story2.id, 1)
 </s> add         self.assertContains(response, '<td class="field-id">%d</td>' % story1.id, 1)
        self.assertContains(response, '<td class="field-id">%d</td>' % story2.id, 1) </s> remove         should_contain = """<th><a href="%s%s/">%s</a></th>""" % (prefix, pk_final_url, escape(self.pk))
 </s> add         should_contain = """<th class="field-__str__"><a href="%s%s/">%s</a></th>""" % (prefix, pk_final_url, escape(self.pk)) </s> remove                     row_class = mark_safe(' class="action-checkbox"')
 </s> add                     row_classes = ['action-checkbox']
    def test_changelist_field_classes(self):
        """
        Cells of the change list table should contain the field name in their class attribute
        Refs #11195.
        """
        Podcast.objects.create(name="Django Dose",
            release_date=datetime.date.today())
        response = self.client.get('/test_admin/admin/admin_views/podcast/')
        self.assertContains(
            response, '<th class="field-name">')
        self.assertContains(
            response, '<td class="field-release_date nowrap">')
        self.assertContains(
            response, '<td class="action-checkbox">')


          self.assertContains(response,
              '<body class="app-admin_views model-section ')
  
    def test_changelist_field_classes(self):
        """
        Cells of the change list table should contain the field name in their class attribute
        Refs #11195.
        """
        Podcast.objects.create(name="Django Dose",
            release_date=datetime.date.today())
        response = self.client.get('/test_admin/admin/admin_views/podcast/')
        self.assertContains(
            response, '<th class="field-name">')
        self.assertContains(
            response, '<td class="field-release_date nowrap">')
        self.assertContains(
            response, '<td class="action-checkbox">')


  try:
      import docutils
  except ImportError:
      docutils = None
  
  
keep keep add keep keep keep keep keep keep
 Fixed #11195 -- Added CSS classes to the changelist cells to allow style customizations. Thanks to akaihola, Ramiro Morales and vdboor for their work on the patch. 
tests/admin_views/tests.py