Small fixes for Warnings found by PyCharm, mostly spellingerrors.

This commit is contained in:
2023-08-01 14:38:32 +02:00
parent ef00fc25f7
commit c62d2ee010
50 changed files with 294 additions and 385 deletions

View File

@@ -8,7 +8,7 @@ class ArticleSitemap(GenericSitemap):
min_priority = 0.25
@staticmethod
def items():
def items(**kwargs):
"""only add published articles to the sitemap"""
return Article.objects.published()
@@ -18,6 +18,6 @@ class PageSitemap(GenericSitemap):
min_priority = 0.5
@staticmethod
def items():
def items(**kwargs):
"""add all pages to the sitemap."""
return Page.objects.all()