From: Guillaume Pellerin Date: Tue, 4 Jun 2019 08:40:05 +0000 (+0200) Subject: Fix sitemap for non-displayable objects X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=de61898152b320ab12e596d9df37e3810997d56d;p=mezzo.git Fix sitemap for non-displayable objects --- diff --git a/app/sitemaps.py b/app/sitemaps.py index 86610ee4..bcf32fce 100644 --- a/app/sitemaps.py +++ b/app/sitemaps.py @@ -48,10 +48,10 @@ class PersonSiteMap(Sitemap): priority = 0.5 def items(self): - return Person.objects.published() + return Person.objects.all() def lastmod(self, obj): - return obj.publish_date + return obj.updated class ProjectSiteMap(Sitemap): @@ -59,10 +59,10 @@ class ProjectSiteMap(Sitemap): priority = 0.5 def items(self): - return Project.objects.published() + return ProjectPage.objects.published() def lastmod(self, obj): - return obj.publish_date + return obj.updated class EventSiteMap(Sitemap):