|
|
@ -2,11 +2,14 @@ |
|
|
from django.contrib import sitemaps |
|
|
from django.contrib import sitemaps |
|
|
from django.urls import reverse |
|
|
from django.urls import reverse |
|
|
|
|
|
|
|
|
|
|
|
from hpst.models import Termin |
|
|
|
|
|
|
|
|
class StaticViewSitemap(sitemaps.Sitemap): |
|
|
class StaticViewSitemap(sitemaps.Sitemap): |
|
|
priority = 0.5 |
|
|
priority = 0.5 |
|
|
changefreq = 'daily' |
|
|
changefreq = 'daily' |
|
|
|
|
|
|
|
|
def items(self): |
|
|
def items(self): |
|
|
|
|
|
termine=Termin.objects.filter(Q(date__gte=timezone.now())|Q(end_date__gte=timezone.now())).order_by( 'date') |
|
|
return ['index', |
|
|
return ['index', |
|
|
'lamatour', |
|
|
'lamatour', |
|
|
'wildnispaedagogik', |
|
|
'wildnispaedagogik', |
|
|
|