summaryrefslogtreecommitdiff
path: root/apps/blog/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/blog/models.py')
-rw-r--r--apps/blog/models.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/blog/models.py b/apps/blog/models.py
index d9cea69..e598f14 100644
--- a/apps/blog/models.py
+++ b/apps/blog/models.py
@@ -98,4 +98,14 @@ class BlogSitemap(Sitemap):
def lastmod(self, obj):
return obj.pub_date
+class LatestFull(Feed):
+ title = "Luxagraf: Topographical Writings"
+ link = "/writing/"
+ description = "Latest postings to luxagraf.net"
+ description_template = 'feeds/blog_description.html'
+
+ def items(self):
+ return Entry.objects.filter(status__exact=1).order_by('-pub_date')[:10]
+
+
#signals.post_save.connect(create_location_item, sender=Entry) \ No newline at end of file