Changes between Initial Version and Version 6 of Ticket #6783


Ignore:
Timestamp:
Jun 16, 2008, 4:22:10 PM (16 years ago)
Author:
Ramiro Morales
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6783

    • Property Triage Stage UnreviewedAccepted
    • Property Summary DecimalField python locale issueDecimalField tests with locale
    • Property Owner changed from nobody to Philippe Raoult
    • Property Patch needs improvement set
  • Ticket #6783 – Description

    initial v6  
    22
    33decimal-python.py (for simple testing):
     4{{{
     5#!python
    46from django.db.models.fields import DecimalField
    57from locale import setlocale, LC_NUMERIC
     
    911setlocale(LC_NUMERIC,'en_US')
    1012print d.format_number(3.456)
    11 
     13}}}
    1214--------------------------------------------------
     15{{{
    1316linux-f426d:/home/admin/django/projects # export DJANGO_SETTINGS_MODULE=ais.settings
    1417linux-f426d:/home/admin/django/projects # python decimal-python.py             
    15183,456
    16193.456
     20}}}
    1721
    18 Environment: Django-SVN
    19 SuSE Linux Enterprise Server 10
    20 Python 2.4.2
     22Environment:
     23 * Django-SVN
     24 * SuSE Linux Enterprise Server 10
     25 * Python 2.4.2
    2126
    2227On my private notebook this is no issue both outputs will be
     28{{{
    23293.456
    24303.456
    25 Private Environment: Django-SVN
    26 OpenSuSe 10.3
    27 Python 2.5.1
     31}}}
     32Private Environment:
     33 * Django-SVN
     34 * OpenSuSe 10.3
     35 * Python 2.5.1
Back to Top