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.was_published_today %} I was published today :) {% else %} Nope, I wasn't published today :( {% endif %} --~--~---------~--~----~------------~-------~--~----~ 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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---