#22654: DecimalField and DECIMAL_SEPARATOR (in admin)
-------------------------------+--------------------
     Reporter:  matija@…       |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.6
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 DecimalField with following settings:

 LANGUAGE_CODE = 'hr-hr'
 TIME_ZONE = 'CET'
 USE_I18N = True
 USE_L10N = False
 USE_TZ = False
 DATE_FORMAT = 'd.m.Y.'
 DATE_INPUT_FORMATS = ('%d.%m.%Y.', '%d.%m.%Y', '%Y-%m-%d')
 DECIMAL_SEPARATOR = ','

 Correctly shows Decimal field in admin, but raises validation error.

 As most of our customers do not set their preferences to Croatian, and we
 need to show Croatian locale for all users. So with settings above, things
 sdhould work.

 Tried in 1.6 and 1.7.

 In order to reproduce, all you need is a single model with a DecimalField,
 registered in Admin. And the above settings. Input any non-integer value
 and press save_and_continue_editing. If you encounter no errors, press it
 again. Now it will show an error.

 I added a new ticked because related ones were closed years ago.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22654>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.2032a54e72d4bc925d504cd3eaa68be4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to