          response = self.client.get('/test_admin/admin/admin_views/story/')
          self.assertContains(response, 'id="id_form-0-id"', 1)  # Only one hidden field, in a separate place than the table.
          self.assertContains(response, 'id="id_form-1-id"', 1)
          self.assertContains(response, '<div class="hiddenfields">\n<input type="hidden" name="form-0-id" value="%d" id="id_form-0-id" /><input type="hidden" name="form-1-id" value="%d" id="id_form-1-id" />\n</div>' % (story2.id, story1.id), html=True)
          self.assertContains(response, '<td>%d</td>' % story1.id, 1)
          self.assertContains(response, '<td>%d</td>' % story2.id, 1)
  
      def test_pk_hidden_fields_with_list_display_links(self):
          """ Similarly as test_pk_hidden_fields, but when the hidden pk fields are
              referenced in list_display_links.
              Refs #12475.
 
</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         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         self.assertInHTML('<td>%s</td>' % editable_name_field, table_output, msg_prefix='Failed to find "name" list_editable field')
 </s> add         self.assertInHTML('<td class="field-name">%s</td>' % editable_name_field, table_output, msg_prefix='Failed to find "name" list_editable field') </s> remove         row_class = ''
 </s> add         row_classes = ['field-%s' % field_name]
        self.assertContains(response, '<td class="field-id">%d</td>' % story1.id, 1)
        self.assertContains(response, '<td class="field-id">%d</td>' % story2.id, 1)
          response = self.client.get('/test_admin/admin/admin_views/story/')
          self.assertContains(response, 'id="id_form-0-id"', 1)  # Only one hidden field, in a separate place than the table.
          self.assertContains(response, 'id="id_form-1-id"', 1)
          self.assertContains(response, '<div class="hiddenfields">\n<input type="hidden" name="form-0-id" value="%d" id="id_form-0-id" /><input type="hidden" name="form-1-id" value="%d" id="id_form-1-id" />\n</div>' % (story2.id, story1.id), html=True)
        self.assertContains(response, '<td class="field-id">%d</td>' % story1.id, 1)
        self.assertContains(response, '<td class="field-id">%d</td>' % story2.id, 1)
        self.assertContains(response, '<td class="field-id">%d</td>' % story1.id, 1)
        self.assertContains(response, '<td class="field-id">%d</td>' % story2.id, 1)
  
      def test_pk_hidden_fields_with_list_display_links(self):
          """ Similarly as test_pk_hidden_fields, but when the hidden pk fields are
              referenced in list_display_links.
              Refs #12475.
keep keep keep keep replace replace 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