From aed00836d5d57c19e8ea2767cafd1340e5e7c00a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 2 Apr 2012 12:06:48 -0500 Subject: Skip default ordering in sitemaps output The output is not required to be ordered by the specification, so save some effort by skipping any sorting. Signed-off-by: Dan McGee --- sitemaps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sitemaps.py b/sitemaps.py index 8e9ba36f..424168bf 100644 --- a/sitemaps.py +++ b/sitemaps.py @@ -13,7 +13,7 @@ class PackagesSitemap(Sitemap): priority = "0.5" def items(self): - return Package.objects.normal() + return Package.objects.all().order_by() def lastmod(self, obj): return obj.last_update @@ -68,7 +68,7 @@ def __init__(self): self.one_week_ago = now - timedelta(days=7) def items(self): - return News.objects.all() + return News.objects.all().order_by() def lastmod(self, obj): return obj.last_modified -- cgit v1.2.3-54-g00ecf