Small fixes for Warnings found by PyCharm, mostly spellingerrors.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user