I think that the extra space between "floatformat:" and "2" is confusing
the template system. Try using "floatformat:2" without spaces.

Leo

Leonardo Giordani
Author of The Digital Cat <http://lgiordani.github.com>
My profile on About.me <http://about.me/leonardo.giordani> - My GitHub
page<https://github.com/lgiordani>- My Coderwall
profile <https://coderwall.com/lgiordani>


2013/10/26 fabricio mata <ponto...@gmail.com>

> even through the code {{form.valor_ultimacompra | floatformat: 2}} does
> not return anything.
>
> my model is
>
> valor_ultimacompra = models.DecimalField (u'Vlr. Ult.Compra 'max_digits =
> 18, decimal_places = 2, default = 0, blank = True, null = True)
>
>
> when you step this way}} {{form.valor_ultimacompra works
>
>
> can someone ajuadar me?
>
> --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/abddc39f-4379-4ecf-88bc-c178d895ea50%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEhE%2BOm1k%3DOTBZtC2VQtydOnnrgZ0Ao-%2BYV23TLQ_Wo3%2BvQxQg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to