I would actually be okay writing the function in the view code, if we had a map filter.
{{ s.teachers|map:list_func|join:";" }} Then add the following to the context: "list_func": lambda(x): x.userinfo.informal_name() How hard would that be to implement, and is it potentially useful enough that it'd be worth it? Todd On Jul 30, 2006, at 6:59 PM, SmileyChris wrote: > > Something like the following would be neat: > > {{ s.teachers|loop:"userinfo.informal_name"|join:"; " }} > I thought of using python's "map" as the filter name but "loop" is > probably be a more generic term. > > How I imagine the filter would look: > def loop(value, arg): > # TODO: do some test to ensure value is iterable > return [djangos_magical_resolver("x." + arg) for x in value] > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---