#22654: DecimalField and DECIMAL_SEPARATOR (in admin)
--------------------------+-----------------------------------------
     Reporter:  matija@…  |                    Owner:
         Type:  Bug       |                   Status:  new
    Component:  Forms     |                  Version:  1.6
     Severity:  Normal    |               Resolution:
     Keywords:            |             Triage Stage:  Someday/Maybe
    Has patch:  0         |      Needs documentation:  0
  Needs tests:  0         |  Patch needs improvement:  0
Easy pickings:  0         |                    UI/UX:  0
--------------------------+-----------------------------------------
Changes (by sabinemaennel):

 * status:  assigned => new
 * type:  Uncategorized => Bug
 * component:  Uncategorized => Forms
 * owner:  sabinemaennel =>
 * stage:  Unreviewed => Someday/Maybe


Comment:

 This is actually an HTML5 Problem. The admin form for the input of a
 number uses the following HTML5 statement:
 `<input id="id_decimal_number" name="..." step="0.01" type="number" />`.
 `step=` in HTML5 can only be defined that way with a `.`as delimiter. Then
 the browser will show it on the screen according to local browser
 settings. Mine showed it as a dot, but I read on stackoverflow, that some
 other users see it with a
 comma.[http://stackoverflow.com/questions/6178332/force-decimal-point-
 instead-of-comma-in-html5-number-input-client-side].

 I think HTML5 will develop further and this behaviour can be corrected via
 a Javascript-Library-Use in the meantime. I am not sure what to do with
 this bug. I would probably place it outside the influence of Django even
 though I can see that it is annoying. Django decided to use HTML5 for its
 forms and this is due to the actual state of HTML5. I feel Django is not
 responsible to correct HTML5 behaviour, but I would really like to know
 the opinion of some more experienced Django contributers on this. So I am
 handing the ticket back.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22654#comment:3>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/077.862ab2af9ebbfb6963f5d949a81454bd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to