code: def nice_display(item):
      
      if hasattr(item, 'all'):  # RelatedManager: display a list
          return ', '.join(map(text_type, item.all()))
      return item
docs: Display a comma-separated list of models for M2M fields