mirror of
https://github.com/Findus23/acronomy.git
synced 2024-09-19 15:33:45 +02:00
15 lines
281 B
Python
15 lines
281 B
Python
|
from django.contrib.sitemaps import Sitemap
|
||
|
|
||
|
from .models import Acronym
|
||
|
|
||
|
|
||
|
class AcronymSitemap(Sitemap):
|
||
|
changefreq = "weekly"
|
||
|
priority = 0.8
|
||
|
|
||
|
def items(self):
|
||
|
return Acronym.objects.all()
|
||
|
|
||
|
def lastmod(self, obj: Acronym):
|
||
|
return obj.modified_date
|