Commit 82846d7e authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'feature/289-vacancy-sitemap' into 'master'

Add vacancies to partner sitemap

Closes #289

See merge request !320
parents 38053917 e0475c15
......@@ -23,7 +23,16 @@ class PartnerSitemap(sitemaps.Sitemap):
return item.get_absolute_url()
class VacancySitemap(sitemaps.Sitemap):
def items(self):
return models.Vacancy.objects.all()
def location(self, item):
return item.get_absolute_url()
sitemap = {
'partners-static': StaticViewSitemap,
'partners-partners': PartnerSitemap,
'partners-vacancies': VacancySitemap,
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment