Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions books/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,10 @@ def get_sitemap_urls(self, request=None):
{
'location': '{}/details/books/{}'.format(Site.find_for_request(request).root_url, self.slug),
'lastmod': (self.last_published_at or self.latest_revision_created_at),
},
{
'location': '{}/errata/?book={}'.format(Site.find_for_request(request).root_url, self.title),
'lastmod': (self.last_published_at or self.latest_revision_created_at),
}
]

Expand Down
3 changes: 3 additions & 0 deletions pages/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,9 @@ class ErrataList(Page):
parent_page_types = ['pages.HomePage']
max_count = 1

def get_sitemap_urls(self, request=None):
return []


class PrivacyPolicy(Page):
intro_heading = models.CharField(max_length=255)
Expand Down