diff options
author | Dan McGee <dan@archlinux.org> | 2012-09-20 09:31:27 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-09-20 09:31:27 -0500 |
commit | 33bfba71042a55ff57115e833aabfed9852e80f4 (patch) | |
tree | 666188476926c6b0b103fe689bed1ccb5b01e365 | |
parent | 2fd5c74004c4b42bb363007d565ac9cb0890818c (diff) |
Defer content and other text items when building news sitemap
We can get away with not retrieving these larger pieces of data when
building the news sitemap.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | sitemaps.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sitemaps.py b/sitemaps.py index 97ab43c0..b53c990b 100644 --- a/sitemaps.py +++ b/sitemaps.py @@ -66,7 +66,7 @@ class NewsSitemap(Sitemap): self.one_week_ago = now - timedelta(days=7) def items(self): - return News.objects.all().order_by() + return News.objects.all().defer('content', 'guid', 'title').order_by() def lastmod(self, obj): return obj.last_modified |