#24445: DurationField with default='1 00:00' triggers validation on otherwise
empty
inline formsets
------------------------+--------------------------------------
Reporter: yoyoma | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------+--------------------------------------
Changes (by claudep):
* severity: Release blocker => Normal
Comment:
In fact, you'll find the exact same behavior with current date-based
fields. If you provide an initial or default value, you should provide a
date/datetime Python value, not a string representation. By analogy, you
should provide a `timedelta` value for your `DurationField` default value.
We *could* change that, other opinions welcome.
--
Ticket URL: <https://code.djangoproject.com/ticket/24445#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.3e3e9f783f157f1764e02ff71893e3c4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.