Commit e0475c15 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Add vacancies to partner sitemap

parent 3cec08af
......@@ -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