From 6c8c43e7c88c5a10eb1a389cd00b26478f66162e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Thu, 26 Jun 2014 18:20:43 +0200 Subject: [PATCH] [Migration] use "new" Podcast in type checks --- mygpo/core/podcasts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mygpo/core/podcasts.py b/mygpo/core/podcasts.py index a91f8a71..dfbd4934 100644 --- a/mygpo/core/podcasts.py +++ b/mygpo/core/podcasts.py @@ -1,6 +1,6 @@ from itertools import chain, islice -from mygpo.core.models import Podcast, PodcastGroup +from mygpo.podcasts.models import Podcast, PodcastGroup from mygpo.core.proxy import proxy_object from mygpo.utils import sorted_chain @@ -53,5 +53,5 @@ def individual_podcasts(pg): yield p elif isinstance(p, PodcastGroup): - for x in p.podcasts: + for x in p.podcast_set.all(): yield x -- 2.11.4.GIT