Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#14044 closed (duplicate)

"required=False" dones't work when use DateTimeField with SplitDateTimeWidget

Reported by: codeplayer Owned by: Yuval Adam
Component: Forms Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


in django shell, this bug can be reproduced like this:

In [1]: from django.forms import *

In [2]: class TForm(Form):
   ...:     d = DateTimeField(widget=SplitDateTimeWidget, required=False)

In [3]: print TForm(data={'d':''}).errors
<ul class="errorlist"><li>d<ul class="errorlist"><li>Enter a valid date/time.</li></ul></li></ul>

Change History (3)

comment:1 by Yuval Adam, 14 years ago

milestone: 1.3
Owner: changed from nobody to Yuval Adam

comment:2 by Łukasz Rekucki, 14 years ago

Resolution: duplicate
Status: newclosed

Looks like a duplicate of #8898.

comment:3 by Jacob, 12 years ago

milestone: 1.3

Milestone 1.3 deleted

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