diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-08-03 16:01:52 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-08-03 16:01:52 -0300 |
commit | a8b2fc84ba96c83ec1addf89ac04608fbf572705 (patch) | |
tree | 6f54cbe43b8684908f2e80ba311272c06fd0fd08 /sitemaps.py | |
parent | 294bf173236610fc8c308f81d8617e7e0d0e4bff (diff) | |
parent | b0bad20756549df5edf726771c8e6869caba6244 (diff) |
Merge branch 'master' of git://projects.archlinux.org/archweb
Conflicts:
templates/base.html
Diffstat (limited to 'sitemaps.py')
-rw-r--r-- | sitemaps.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sitemaps.py b/sitemaps.py index e321fe85..37387f15 100644 --- a/sitemaps.py +++ b/sitemaps.py @@ -8,8 +8,7 @@ class PackagesSitemap(Sitemap): priority = "0.5" def items(self): - return Package.objects.select_related('arch', 'repo').all() - return Package.objects.all() + return Package.objects.normal() def lastmod(self, obj): return obj.last_update @@ -48,6 +47,6 @@ class NewsSitemap(Sitemap): return News.objects.all() def lastmod(self, obj): - return obj.postdate + return obj.last_modified # vim: set ts=4 sw=4 et: |