                  # function has an "allow_tags" attribute set to True.
                  if allow_tags:
                      result_repr = mark_safe(result_repr)
                  if isinstance(value, (datetime.date, datetime.time)):
                      row_class = mark_safe(' class="nowrap"')
              else:
                  if isinstance(f.rel, models.ManyToOneRel):
                      field_val = getattr(result, f.name)
                      if field_val is None:
                          result_repr = EMPTY_CHANGELIST_VALUE
 
</s> remove                     row_class = mark_safe(' class="nowrap"')
 </s> add                     row_classes.append('nowrap') </s> remove                     row_class = mark_safe(' class="action-checkbox"')
 </s> add                     row_classes = ['action-checkbox'] </s> remove         row_class = ''
 </s> add         row_classes = ['field-%s' % field_name] </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))
                    row_classes.append('nowrap')
                  # function has an "allow_tags" attribute set to True.
                  if allow_tags:
                      result_repr = mark_safe(result_repr)
                  if isinstance(value, (datetime.date, datetime.time)):
                    row_classes.append('nowrap')
              else:
                  if isinstance(f.rel, models.ManyToOneRel):
                      field_val = getattr(result, f.name)
                      if field_val is None:
                          result_repr = EMPTY_CHANGELIST_VALUE
keep keep keep keep 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. 
django/contrib/admin/templatetags/admin_list.py