From 0b1471372ef6dec31ecce9cb416effa672a2cb14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Wed, 27 Aug 2014 15:50:19 +0000 Subject: [PATCH] [Podcasts] add logo_url to PodcastGroup --- mygpo/podcasts/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mygpo/podcasts/models.py b/mygpo/podcasts/models.py index 49158b6a..7e6291da 100644 --- a/mygpo/podcasts/models.py +++ b/mygpo/podcasts/models.py @@ -338,6 +338,12 @@ class PodcastGroup(UUIDModel, TitleModel, SlugsMixin): # this could be done directly in the DB return sum([p.subscriber_count() for p in self.podcast_set.all()] + [0]) + @property + def logo_url(self): + podcast = self.podcast_set.first() + podcast.logo_url + + class PodcastQuerySet(MergedUUIDQuerySet): """ Custom queries for Podcasts """ -- 2.11.4.GIT