diff options
author | Dan McGee <dan@archlinux.org> | 2010-02-03 04:38:53 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-02-03 04:38:53 +0100 |
commit | f22f20003b659a21ec387188130e4a5013c9271a (patch) | |
tree | 40fb12a3b8f322378f7d78ca61aeca3c618fe381 | |
parent | e1eb859c5aef70a53a6a556860bb2fd8dd8c770f (diff) | |
download | archweb-f22f20003b659a21ec387188130e4a5013c9271a.tar.gz archweb-f22f20003b659a21ec387188130e4a5013c9271a.tar.xz |
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.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sitemaps.py b/sitemaps.py index 9e2ef85..aab2009 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): |