  
  
  @register.filter
  def add_nested_class(value):
      if isinstance(value, (list, dict)):
          return 'class=nested'
      return ''
  
  
  # Bunch of stuff cloned from urlize
 
</s> remove         context['linked'] = linked
 </s> add  </s> remove         linked = [columns[0]] if columns else []
 </s> add 
    if isinstance(value, dict):
        return 'class=nested'
    if isinstance(value, list) and any([isinstance(item, (list, dict)) for item in value]):
  
  
  @register.filter
  def add_nested_class(value):
    if isinstance(value, dict):
        return 'class=nested'
    if isinstance(value, list) and any([isinstance(item, (list, dict)) for item in value]):
          return 'class=nested'
      return ''
  
  
  # Bunch of stuff cloned from urlize
keep keep keep keep replace keep keep keep keep keep
 Use chevron control for row linking, rather than hyperlinking first item 
rest_framework/templatetags/rest_framework.py