Terrific. Thanks.

On Apr 6, 7:30 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I would make a filter there takes a string and repeats it the number
> of times in the arg.
>
> On Apr 6, 9:27 pm, Lee Hinde <[EMAIL PROTECTED]> wrote:
>
> > Hi;
>
> > i have a database field "pricing_level". It's an int between 1 and 5.
>
> > In a web page, I'm iterating through a list of products and I want to
> > display something like:
>
> >         {% for p in Prod %}
> >                {{p.product_level*"$"}}<br />
> >         {% endfor %}
>
> > (along with a bunch of other stuff, of course.)
>
> > The output in this sample would be,
> > $$
> > $$$
> > $
> > $$$$
>
> > etc.
>
> > I didn't see a straight ahead way to do this. What would you suggest?
>
> > Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to