thanks 2009/9/24 Karen Tracey <kmtra...@gmail.com>
> On Wed, Sep 23, 2009 at 12:13 PM, Join hack <joinh...@gmail.com> wrote: > >> i read the django doc, but there is no solution for this . >> >> > The doc ( > http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#writing-custom-template-filters) > is clear: a filter has only one argument. > > You are free to take the value of that argument and split it up somehow. > The pluralize filter does this -- if the argument contains a comma, then the > part before the comma is used for the singular suffix and the part after the > comma is the plural suffix. The removetags filter has a single argument > that is a space-delimited list of tags. So there are two examples of how you > can interpret a single argument and turn it into multiple things. > > Karen > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---