From f22f20003b659a21ec387188130e4a5013c9271a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 2 Feb 2010 21:38:53 -0600 Subject: Make sitemap generation suck a lot less Add a select_related() clause that was really needed. Signed-off-by: Dan McGee --- sitemaps.py | 1 + 1 file changed, 1 insertion(+) 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): -- cgit v1.2.3-2-g168b