Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#15492 closed (fixed)

Explain all error message keys for the SplitDateTimeField

Reported by: lode Owned by: nobody
Component: Documentation Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

According to http://docs.djangoproject.com/en/dev/ref/forms/fields/#splitdatetimefield the SplitDateTimeField has the error message keys 'required' and 'invalid'.

Wanting to change the error message for an invalid time failed until I discovered (via this fix http://www.mail-archive.com/django-updates@googlegroups.com/msg35926.html) that there are also error message keys 'invalid_time' and 'invalid_date'.

It would be nice if these were added to the documentation.

Change History (3)

comment:1 Changed 5 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 5 years ago by gabrielhurley

  • Resolution set to fixed
  • Status changed from new to closed

In [15663]:

Fixed #15492 -- Documented the invalid_date and invalid_time error keys for SplitDateTimeField. Thanks to lode for the report.

comment:3 Changed 5 years ago by gabrielhurley

In [15664]:

[1.2.X] Fixed #15492 -- Documented the invalid_date and invalid_time error keys for SplitDateTimeField. Thanks to lode for the report.

Backport of [15663] from trunk.

Note: See TracTickets for help on using tickets.
Back to Top