Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
e0475c15
Commit
e0475c15
authored
Jan 22, 2017
by
Sébastiaan Versteeg
Browse files
Add vacancies to partner sitemap
parent
3cec08af
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/partners/sitemaps.py
View file @
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
,
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment