Re: accessing was_published_today in a template

2006-08-03 Thread Adrian Holovaty
On 8/3/06, skullvulture <[EMAIL PROTECTED]> wrote: > In the tutorial you create a custom method was_published_today. How > can you access it in the template? I'm using generic views. Do I have > to write my own more complicated view to access it? Thanks. Hi skullvulture, To access methods of

Re: accessing was_published_today in a template

2006-08-03 Thread skullvulture
Thanks, I was putting in the parenthesis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, sen

Re: accessing was_published_today in a template

2006-08-03 Thread Steven Armstrong
On 08/03/06 21:01, skullvulture wrote: > In the tutorial you create a custom method was_published_today. How > can you access it in the template? I'm using generic views. Do I have > to write my own more complicated view to access it? Thanks. > Something like this should work: {% if object.

Re: accessing was_published_today in a template

2006-08-03 Thread James Bennett
On 8/3/06, skullvulture <[EMAIL PROTECTED]> wrote: > In the tutorial you create a custom method was_published_today. How > can you access it in the template? I'm using generic views. Do I have > to write my own more complicated view to access it? Thanks. Since it's a property of the object, h

Re: accessing was_published_today in a template

2006-08-03 Thread Ian Clelland
On 8/3/06, skullvulture <[EMAIL PROTECTED]> wrote: > > In the tutorial you create a custom method was_published_today. How > can you access it in the template? I'm using generic views. Do I have > to write my own more complicated view to access it? Thanks. You don't need to write any more com