mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-14 03:50:59 +00:00
Fix deprecation warning on get_sitemap_urls
This commit is contained in:
parent
897112a5a2
commit
cac8fa09ba
1 changed files with 2 additions and 2 deletions
|
|
@ -410,9 +410,9 @@ class EventIndex(Page):
|
|||
for path in super().get_static_site_paths():
|
||||
yield path
|
||||
|
||||
def get_sitemap_urls(self):
|
||||
def get_sitemap_urls(self, request=None):
|
||||
# Add past events url to sitemap
|
||||
return super().get_sitemap_urls() + [
|
||||
return super().get_sitemap_urls(request=request) + [
|
||||
{
|
||||
'location': self.full_url + 'past/',
|
||||
'lastmod': self.latest_revision_created_at
|
||||
|
|
|
|||
Loading…
Reference in a new issue