summaryrefslogtreecommitdiffstats
path: root/sitemaps.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-04-02 19:06:48 +0200
committerDan McGee <dan@archlinux.org>2012-04-02 19:06:48 +0200
commitaed00836d5d57c19e8ea2767cafd1340e5e7c00a (patch)
tree7464fb8c4c57e5acf312a303b3c5035c0ff88493 /sitemaps.py
parentcbdcb08557112f53ddcf074b950ee0950e12a045 (diff)
downloadarchweb-aed00836d5d57c19e8ea2767cafd1340e5e7c00a.tar.gz
archweb-aed00836d5d57c19e8ea2767cafd1340e5e7c00a.tar.xz
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>
Diffstat (limited to 'sitemaps.py')
-rw-r--r--sitemaps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sitemaps.py b/sitemaps.py
index 8e9ba36..424168b 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 @@ class NewsSitemap(Sitemap):
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