diff gpp/templates/podcast/feed.xml @ 403:6e425c9b9d16

In support of #161; improve query performance of the feed view; also cache the feed view in urls.py.
author Brian Neal <bgneal@gmail.com>
date Sun, 27 Mar 2011 18:22:48 +0000
parents 1ed461fd2030
children
line wrap: on
line diff
--- a/gpp/templates/podcast/feed.xml	Sun Mar 27 01:51:18 2011 +0000
+++ b/gpp/templates/podcast/feed.xml	Sun Mar 27 18:22:48 2011 +0000
@@ -21,7 +21,7 @@
 <itunes:image href="{{ channel.image.url }}" />
 <itunes:category text="{{ channel.category }}" />
 <itunes:explicit>{{ channel.explicit }}</itunes:explicit>
-{% for item in channel.item_set.all %}
+{% for item in channel.items %}
 <item>
 <title>{{ item.title }}</title>
 <itunes:author>{{ item.author }}</itunes:author>