#18777: Visualization of date fields as_hidden aren't localized
----------------------------+--------------------------------
Reporter: croldan | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 1.4
Severity: Normal | Keywords: date widget hidden
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------
When use a date field as_hidden in template, the value isn't localized.
For example, in my settings.py I set:
{{{
LANGUAGE_CODE="es_ar"
}}}
and when I use:
{{{
{{form.field.as_hidden}}
}}}
I recieve:
{{{
<input type="hidden" name="date_field" value="2012-01-01"
id="id_date_field">
}}}
and the correct format must be:
{{{
<input type="hidden" name="date_field" value="01/01/2012"
id="id_date_field">
}}}
The Input widget does not use format for those types (see Date, DateTime
or Time widgets)
--
Ticket URL: <https://code.djangoproject.com/ticket/18777>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.