On 3 Okt., 13:18, peschler <[EMAIL PROTECTED]> wrote:
> Hi Niklas,
>
> > So in code it should look like this:
> > If user is my argument that was given to render_to_response, i want to
> > give the function the submodel status of user; like this:
> > {{ percentbar user.status }}
>
> Some docs on
Hi Niklas,
> So in code it should look like this:
> If user is my argument that was given to render_to_response, i want to
> give the function the submodel status of user; like this:
> {{ percentbar user.status }}
>
Some docs on how to achieve this can be found here:
Hi Niklas,
I'm not certain, but you might find that the default template tag,
widthratio already does what you need:
http://www.djangoproject.com/documentation/templates/#widthratio
The example shows how it can be used to create bar-charts etc. (to
display percentage complete).
Otherwise, yes
I have a Problem and can't find anything about it, that helps me...
I integrated a self-made templatetag into django and it works well.
this tag just generate a percent bar.
There is only one argument which is given to the function, it is the
percentage status, but i dont want a static
4 matches
Mail list logo