summaryrefslogtreecommitdiff
path: root/app/locations
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-05-25 12:32:25 -0400
committerluxagraf <sng@luxagraf.net>2014-05-25 12:32:25 -0400
commit371b04c87136ee1926c488c6a499fbef472dd27a (patch)
tree34e78ca641525b161b089014cce88d5db786d2b1 /app/locations
parent317a8508fe320c34a4d39a76ffbfa24e5ca8c4f9 (diff)
added writing/location urls to sitemap
Diffstat (limited to 'app/locations')
-rw-r--r--app/locations/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/locations/models.py b/app/locations/models.py
index ac8ec44..0148327 100644
--- a/app/locations/models.py
+++ b/app/locations/models.py
@@ -147,12 +147,12 @@ class Route(models.Model):
return self.name
-class WritingbyLocationSitemap(Sitemap):
+class WritingbyCountrySitemap(Sitemap):
changefreq = "weekly"
priority = 0.6
- def location():
- return '/writing/%s' % self.slug
+ def location(self, item):
+ return '/writing/%s' % item.slug
def items(self):
- return Location.objects.all()
+ return Country.objects.filter(visited=True)