I'm using Django 1.4
with location (L10N) enabled, which causes numeric values in the template to be formatted: 1.234,56
. The problem is that every time I put ID
in the template, for example:
data-id="{{ form.instance.id }}"
It is rendered as:
data-id="1.234"
Obviously, if this ID
goes to request ajax
, the ID
is not found in the base, because it is not a valid int
value. I I can avoid this behavior using |safe
or |unlocalize
, but in some places, for example in admin
, I do not have this access (would need to change Django) / p>
<a href="{% url opts|admin_urlname:'changelist' %}{{ original.pk }}">{{ original|truncatewords:"18" }}</a>
Is it possible to make Django not find IDs generically?