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