#16467: Little typo in the Formset docu
----------------------------------+----------------------------
 Reporter:  hannes.hapke@…        |          Owner:  nobody
     Type:  Cleanup/optimization  |         Status:  new
Milestone:                        |      Component:  Forms
  Version:  1.3                   |       Severity:  Normal
 Keywords:  form inital value     |   Triage Stage:  Unreviewed
Has patch:  0                     |  Easy pickings:  0
    UI/UX:  0                     |
----------------------------------+----------------------------
 Is it possible that the example regarding "Using initial data with a
 formset" has too many brackets?


 {{{
 >>> formset = ArticleFormSet(initial=[
 ...     {'title': u'Django is now open source',
 ...      'pub_date': datetime.date.today()},
 ... ])
 }}}


 could it be ... (above did knot work for me)

 {{{
 >>> formset = ArticleFormSet(initial={
 ...     'title': u'Django is now open source',
 ...     'pub_date': datetime.date.today(),
 ... })
 }}}


 With the inital example I get the error msg:

 {{{
 dictionary update sequence element #0 has length 5; 2 is required
 }}}


 Just a thought.

 Best regards,
 Hannes

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16467>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to