]> git.parisson.com Git - mezzo.git/commitdiff
Fix sitemap for non-displayable objects
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 4 Jun 2019 08:40:05 +0000 (10:40 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 4 Jun 2019 08:40:05 +0000 (10:40 +0200)
app/sitemaps.py

index 86610ee4a1e65847e7d349ed98801b979e49f962..bcf32fce41f481d7c1bb0024388df28847d16f25 100644 (file)
@@ -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):