On Sat, May 2, 2009 at 9:37 PM, George Song <geo...@damacy.net> wrote:
> I think the easiest solution for you is to write a custom method on your > Score model: > You might also want to look at writing a template tag or filter. In this case a simple filter would be: from django import template registry = template.Library() @register.filter def fr_date(value): return DateFr(value) and in your templates you just do a filter call like so: {{ s.moment|fr_date }} Simple and easy. http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ Hope that helps, Michael --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---