Code

Opened 5 years ago

Closed 4 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:

Description

Hi!

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.

thanks,
bencoder

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by bencoder

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

comment:2 Changed 5 years ago by Alex

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 4 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.