1 from mygpo
.podcasts
.models
import Podcast
, PodcastGroup
4 # the default sort order for podcasts
5 PODCAST_SORT
=lambda p
: p
.display_title
8 def lazy_call(f
, *args
, **kwargs
):
9 for x
in f(*args
, **kwargs
):
13 def individual_podcasts(pg
):
14 """ returns individual podcasts for an iter of Podcast(Group) objects """
17 if isinstance(p
, Podcast
):
20 elif isinstance(p
, PodcastGroup
):
21 for x
in p
.podcast_set
.all():