diff options
author | Dan McGee <dan@archlinux.org> | 2013-01-18 20:15:40 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-01-18 20:15:40 -0600 |
commit | 7313a7914dac9c86d48656964d310cff7fc2a0e1 (patch) | |
tree | 3ff613db00589c959eb7f251e28998ce759b7ab5 | |
parent | cba22a378b48f1a4f185a56a21f39483595cf8a6 (diff) |
Include 'files_last_update' in package sitemap query
We need this for the package files sitemap; else we are doing one query
per package to retrieve this field. Whoops.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | sitemaps.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sitemaps.py b/sitemaps.py index 0388627b..110c588a 100644 --- a/sitemaps.py +++ b/sitemaps.py @@ -14,7 +14,8 @@ class PackagesSitemap(Sitemap): def items(self): return Package.objects.normal().filter(repo__staging=False).only( - 'pkgname', 'last_update', 'repo__name', 'arch__name').order_by() + 'pkgname', 'last_update', 'files_last_update', + 'repo__name', 'arch__name').order_by() def lastmod(self, obj): return obj.last_update |