From f01e43401b69a1540560dab2c359ad7574a8b8e4 Mon Sep 17 00:00:00 2001 From: "luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f" Date: Sun, 11 Jan 2009 03:47:34 +0000 Subject: added tumblr client code --- apps/blog/models.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps/blog') 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 -- cgit v1.2.3