(podcast, title=None)
return "%(title)s (%(links)s)" % dict(title=podcast.title, links=link_text)
Returns the link strings for Podcast and PodcastGroup objects

    automatically distinguishes between relational Podcast/PodcastGroup
Returns the link strings for Podcast and PodcastGroup objects
Returns the link strings for Podcast and PodcastGroup objects
def podcast_group_link(podcast, title=None):
    """Returns the link strings for Podcast and PodcastGroup objects

    automatically distinguishes between relational Podcast/PodcastGroup"""

    from mygpo.podcasts.models import PodcastGroup

    if isinstance(podcast, PodcastGroup):
        podcasts = list(podcast.podcast_set.all())
    else:
        return podcast_link(podcast, title)

    links = (podcast_link(p, p.group_member_name) for p in podcasts)
    link_text = " ".join(links)
    return "%(title)s (%(links)s)" % dict(title=podcast.title, links=link_text)
def podcast_group_link ( podcast , title = None ) : from mygpo . podcasts . models import PodcastGroup if isinstance ( podcast , PodcastGroup ) : podcasts = list ( podcast . podcast_set . all ( ) ) else : return podcast_link ( podcast , title ) links = ( podcast_link ( p , p . group_member_name ) for p in podcasts ) link_text = " " . join ( links ) return "%(title)s (%(links)s)" % dict ( title = podcast . title , links = link_text )