Opened 8 years ago

Closed 7 years ago

#5547 closed (fixed)

[newforms-admin] DateTimeField won't honor default value

Reported by: brosner Owned by: nobody
Component: contrib.admin Version: newforms-admin
Severity: Keywords: nfa-blocker
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In #899 will fix the newforms bug where the default value from the database field get populated into the form field's initial value. Once that patch gets applied then newforms-admin's formfield_callback still won't honor the default value for DateTimeField's. Here is a patch that will correct that and generally a better clean up anyways.

Attachments (1)

5547_datetimefield_default_fix.diff (839 bytes) - added by brosner 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by brosner

comment:1 Changed 8 years ago by Simon G. <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 8 years ago by brosner

  • Keywords nfa-blocker added

This is still present in newforms-admin. Tagging with nfa-blocker.

comment:3 Changed 7 years ago by brosner

  • Resolution set to fixed
  • Status changed from new to closed

(In [7178]) newforms-admin: Fixed #5547. SplitDateTimeField now honors the default value from the model.

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