Thursday, June 27, 2013

Re: Django automatically formatting ints with commas, bug?



On Thu, Jun 27, 2013 at 7:32 PM, Stryder Crown <stryder.c@gmail.com> wrote:
Any body know why django would format an integer as a comma seperated value?  i.e. 1578 becomes 1,578?
No, I'm not using humanize and only loading il8n and sekizai tags...The only way I've found to force it to render correctly is to use '|stringformat:"s"'.

Usage:
{% load i18n sekizaitags %}
<a href="#"><span class='toggleIcon'></span>Element {{ element.id }} </a>

That's it.


--
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+unsubscribe@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.
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+unsubscribe@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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment