Opened 10 years ago

Closed 8 years ago

#11059 closed (invalid)

Doc <-> Functionallity [FormsAPI Dynamic initial values] difference

Reported by: bencoder Owned by: nobody
Component: Forms Version: 1.0
Severity: Keywords: dynamic initial
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no



These values are only displayed for unbound forms, and they're not used as fallback values if a particular value isn't provided.

That's wrong. ModelForm.init-Code loads the data from the DB-Record into a Dict and updates that dict with the initial-dict.

So the initial values are always used, not just for unbound Forms.


Change History (3)

comment:2 Changed 9 years ago by Alex Gaynor

Triage Stage: UnreviewedAccepted

comment:3 Changed 8 years ago by Matt McClanahan

Resolution: invalid
Status: newclosed

You've misinterpreted the source. If a form is bound, initial data is ignored completely.

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