summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-02 21:38:53 -0600
committerDan McGee <dan@archlinux.org>2010-02-02 21:38:53 -0600
commitf22f20003b659a21ec387188130e4a5013c9271a (patch)
tree40fb12a3b8f322378f7d78ca61aeca3c618fe381
parente1eb859c5aef70a53a6a556860bb2fd8dd8c770f (diff)
Make sitemap generation suck a lot less
Add a select_related() clause that was really needed. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--sitemaps.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sitemaps.py b/sitemaps.py
index 9e2ef856..aab2009d 100644
--- a/sitemaps.py
+++ b/sitemaps.py
@@ -6,6 +6,7 @@ class PackagesSitemap(Sitemap):
priority = "0.4"
def items(self):
+ return Package.objects.select_related('arch', 'repo').all()
return Package.objects.all()
def lastmod(self, obj):