Re: Specifying a pub date with syndication

2006-12-05 Thread [EMAIL PROTECTED]
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

Re: Specifying a pub date with syndication

2006-12-05 Thread Suriya
[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] ] --~--~-~--~~~---~--~~

Specifying a pub date with syndication

2006-12-05 Thread [EMAIL PROTECTED]
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):