#34557: Time-based model field cleaning and TypeErrors
-------------------------------------+-------------------------------------
Reporter: Claude | Owner: nobody
Paroz |
Type: | Status: new
Cleanup/optimization |
Component: Database | Version: dev
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
In the case I set a wrong integer value to some time-based field (say a
year as integer) and call `full_clean` on the instance, I'll get a
`TypeError` as only `ValueError`s are catched to produce
`ValidationError`s.
Should that use case be supported and should `Date(Time)Field.to_python`
also catch `TypeError`s?
--
Ticket URL: <https://code.djangoproject.com/ticket/34557>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018809a48175-ad54933b-078b-4ab4-b6dc-f4947dabacbd-000000%40eu-central-1.amazonses.com.