Hi Aline,

It is not direct answer for what you are asking,
but why do you calculate the percentage 2 times?

Why just use `with
<https://docs.djangoproject.com/en/1.10/ref/templates/builtins/#with>` tag?

With it nor problem at all.

Hope that helps.

Regards,
Constantine C.

On Sun, Oct 16, 2016 at 5:53 AM, James Schneider <jrschneide...@gmail.com>
wrote:

>
> > Why the template tag call {% get_percentage question.pk choice.pk %}
> works inside the span tag, but doesn't work in style (width) attribute?
> >
> > What is wrong?
> >
>
> No idea. You haven't provided what your template tag does, or what the
> rendered template looks like.
>
> What does the final HTML look like?
>
> -James
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CA%2Be%2BciV9%2Bp79D4Gkst8khnhmDVt3nUOrA2C6-
> uWXgmVi8p-rDw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2Be%2BciV9%2Bp79D4Gkst8khnhmDVt3nUOrA2C6-uWXgmVi8p-rDw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK52boXdjG1_YJuYcQj-iRNsXezKhCOSrHA6_y5AmOmwZ7Uhbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to