summaryrefslogtreecommitdiff
path: root/apps/blog
diff options
context:
space:
mode:
authorluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2009-01-11 03:47:34 +0000
committerluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2009-01-11 03:47:34 +0000
commitf01e43401b69a1540560dab2c359ad7574a8b8e4 (patch)
tree2a812172e796feda238e2fc5dc2ea8aeff05523b /apps/blog
parentc5924fb42438bf9a1dd69414ad0b42594c429fea (diff)
added tumblr client code
Diffstat (limited to 'apps/blog')
-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