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 <dan@archlinux.org>
This commit is contained in:
Dan McGee 2012-04-02 12:06:48 -05:00
parent cbdcb08557
commit aed00836d5

View File

@ -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