summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2011-02-02 18:56:59 -0500
committerluxagraf <sng@luxagraf.net>2011-02-02 18:56:59 -0500
commitdde08fc4449fc69c019652c296577a46816107a2 (patch)
tree730fb8109a0a755408573480e49884a07fda1731 /apps
parentce48ad38126d00b3ce502490209e66617facd23d (diff)
parent8414a1ee0848fe82706cda255d5ddc7dd1d2702c (diff)
Merge branch 'master' of http://git.luxagraf.net/luxagraf
Diffstat (limited to 'apps')
-rw-r--r--apps/projects/models/base.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/projects/models/base.py b/apps/projects/models/base.py
index 96ccd59..df279ad 100644
--- a/apps/projects/models/base.py
+++ b/apps/projects/models/base.py
@@ -60,4 +60,15 @@ class Project(models.Model):
return self.get_previous_by_pub_date(status__exact=1)
def get_next_published(self):
- return self.get_next_by_pub_date(status__exact=1) \ No newline at end of file
+ return self.get_next_by_pub_date(status__exact=1)
+
+
+class ProjectSitemap(Sitemap):
+ changefreq = "never"
+ priority = 1.0
+
+ def items(self):
+ return Project.objects.filter(status=1)
+
+ def lastmod(self, obj):
+ return obj.pub_date