Opened 7 years ago

Closed 5 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: UI/UX:



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:1 Changed 7 years ago by bencoder

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 6 years ago by Alex

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 5 years ago by mattmcc

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

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