Display a comma-separated list of models for M2M fields

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