Hello, Filter it in your inclusion template, for instance if your tag returns a result from your auction object:
def il8n_attr(context, arg, arg2, lang_code): # do you processing return {'result': my_result} register.inclusion_tag('il8n-inclusion.html', takes_context=True)(il8n_attr) # template: <p> {{ result|truncatewords:50 }} </p> ...for instance... Hth, Aaron pihentagy wrote: > Hi all! > > I have an inclusion tag: > {% i18n_attr auction 'description' LANGUAGE_CODE %} > > I don't know how can I filter it with truncatewords. > > {% i18n_attr auction 'description' LANGUAGE_CODE|truncatewords:10 %} > doesn't work. > > Any ideas? > > thanks > > > > --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---