Created
August 12, 2015 07:57
-
-
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?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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