#2103 closed defect (fixed)
DateField and DateTimefield do not really validate
Reported by: | Rudolph Froger | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Validators | Version: | dev |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When providing an invalid date like 2006-2-31 to a DateField or
DateTimeField, the validation doesn't catch that and an unhandled
exception is raised. It shouldn't be too hard to validate for valid
dates since you can rely on the Pythons datetime module.
I think this is a bug, or at least a missing feature one expects to
find in the validation thing.
Rudolph
Note:
See TracTickets
for help on using tickets.
This is solved by Adrian in changeset [3242].