I have a model with with a variable number of objects.

I want to make a tag cloud with font-size to be a proportion of
objects.count() (wich goes from 1 to 150 ).

Obviously I can't use that number in font-size (150pt is too big) and
I have to make a proportion (150 -> 20pt, 1 -> 5pt, 50 ~>10pt and so
on).

How can I accomplish that?

-- 
Alessandro Ronchi

SOASI
Sviluppo Software e Sistemi Open Source
http://www.soasi.com
http://www.linkedin.com/in/ronchialessandro

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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=.


Reply via email to