Suriya wrote:
> [EMAIL PROTECTED] wrote:
>
> > def items(self):
> > return Post.objects.order_by('-pub_date')[:5]
> >
> > The pub date is in Post > pub_date
>
> def items(self):
> return [ i.pub_date for i in Post.objects.order_by('-pub_date')[:5] ]
Thanks for posting this. Howe
[EMAIL PROTECTED] wrote:
> def items(self):
> return Post.objects.order_by('-pub_date')[:5]
>
> The pub date is in Post > pub_date
def items(self):
return [ i.pub_date for i in Post.objects.order_by('-pub_date')[:5] ]
--~--~-~--~~~---~--~~
Hey,
Just a quick question - what would I need to add to the following feed
class to get pub dates for each item?
class latest_entries(Feed):
title = "oBeattie - Latest Posts"
link = "/blog/"
description = "Latest posts on oBeattie"
def items(self):
3 matches
Mail list logo