Skip to content

Instantly share code, notes, and snippets.

@elmcrest
Created August 12, 2015 07:57
Show Gist options
  • Save elmcrest/f26623426fc33f283edd to your computer and use it in GitHub Desktop.
Save elmcrest/f26623426fc33f283edd to your computer and use it in GitHub Desktop.
Django seems to format all numeric Values including Primary Keys when USE_L10N = True. Intended from Django?
# The Primary Key Field is the "default" from Django ORM - so no explicite definition
# Django==1.8
# USE_L10N = False
<div data-pk="12513" class="empty">
</div>
# USE_L10N = True locale = de_DE
<div data-pk="12.513">
</div>
# USE_L10N = True locale = en_US
<div data-pk="12,513">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment