Changes between Initial Version and Version 6 of Ticket #6783
- Timestamp:
- Jun 16, 2008, 4:22:10 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6783
- Property Triage Stage Unreviewed → Accepted
- Property Summary DecimalField python locale issue → DecimalField tests with locale
- Property Owner changed from to
- Property Patch needs improvement set
-
Ticket #6783 – Description
initial v6 2 2 3 3 decimal-python.py (for simple testing): 4 {{{ 5 #!python 4 6 from django.db.models.fields import DecimalField 5 7 from locale import setlocale, LC_NUMERIC … … 9 11 setlocale(LC_NUMERIC,'en_US') 10 12 print d.format_number(3.456) 11 13 }}} 12 14 -------------------------------------------------- 15 {{{ 13 16 linux-f426d:/home/admin/django/projects # export DJANGO_SETTINGS_MODULE=ais.settings 14 17 linux-f426d:/home/admin/django/projects # python decimal-python.py 15 18 3,456 16 19 3.456 20 }}} 17 21 18 Environment: Django-SVN 19 SuSE Linux Enterprise Server 10 20 Python 2.4.2 22 Environment: 23 * Django-SVN 24 * SuSE Linux Enterprise Server 10 25 * Python 2.4.2 21 26 22 27 On my private notebook this is no issue both outputs will be 28 {{{ 23 29 3.456 24 30 3.456 25 Private Environment: Django-SVN 26 OpenSuSe 10.3 27 Python 2.5.1 31 }}} 32 Private Environment: 33 * Django-SVN 34 * OpenSuSe 10.3 35 * Python 2.5.1