Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 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.

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by russellm

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

comment:2 Changed 3 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 3 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.