From 3a39dbe48319b17ff769baac0f9dc8ae1fb10fff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Thu, 28 Aug 2014 15:54:49 +0000 Subject: [PATCH] [Flattr] fix bug when flattring episode --- mygpo/core/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mygpo/core/tasks.py b/mygpo/core/tasks.py index edad7e65..763e7635 100644 --- a/mygpo/core/tasks.py +++ b/mygpo/core/tasks.py @@ -25,7 +25,8 @@ def flattr_thing(user, thing_id, domain, is_secure, thing_type): episode, podcast = None, thing elif thing_type == 'Episode': - thing = Episode.objects.get(id=thing_id).select_related('podcast') + query = Episode.objects.filter(id=thing_id).select_related('podcast') + thing = query.get() episode, podcast = thing, thing.podcast else: -- 2.11.4.GIT