Coverage for articles/sitemaps.py: 100.00%

9 statements  

« prev     ^ index     » next       coverage.py v7.9.1, created at 2025-06-13 16:37 -0700

1from django.contrib.sitemaps import Sitemap 1a

2 

3from .models import Article 1a

4 

5 

6class ArticleSitemap(Sitemap): 1a

7 changefreq = "weekly" 1a

8 priority = 0.9 1a

9 

10 def items(self): 1a

11 return Article.published.all() 1b

12 

13 def lastmod(self, obj): 1a

14 return obj.updated 1b