#11112: Formsets not supported as steps in FormWizard
------------------------------------------------------+---------------------
          Reporter:  hlecuanda <hec...@lecuanda.com>  |         Owner:  nobody  
          
            Status:  new                              |     Milestone:          
          
         Component:  django.contrib.formtools         |       Version:  SVN     
          
        Resolution:                                   |      Keywords:  
FormWizard FormSet
             Stage:  Accepted                         |     Has_patch:  1       
          
        Needs_docs:  0                                |   Needs_tests:  0       
          
Needs_better_patch:  0                                |  
------------------------------------------------------+---------------------
Comment (by visik7):

 I tried to use the patch2 but I got this error:
 I don't know anything about formset internals so I dunno how to solve it

 {{{
 Environment:

 Request Method: POST
 Request URL: http://localhost:8000/curricula/inserisci-
 candidato-e-curriculum/
 Django Version: 1.2.3
 Python Version: 2.6.6
 Installed Applications:
 ['django.contrib.auth',
  'django.contrib.contenttypes',
  'django.contrib.sessions',
  'django.contrib.admin',
  'django.contrib.sites',
  'hrar']
 Installed Middleware:
 ('django.middleware.common.CommonMiddleware',
  'django.contrib.sessions.middleware.SessionMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.middleware.doc.XViewMiddleware')


 Traceback:
 File "/home/visi/ARcur/parts/django/django/core/handlers/base.py" in
 get_response
   100.                     response = callback(request, *callback_args,
 **callback_kwargs)
 File "/home/visi/ARcur/parts/django/django/utils/decorators.py" in
 _wrapper
   21.             return decorator(bound_func)(*args, **kwargs)
 File "/home/visi/ARcur/parts/django/django/utils/decorators.py" in
 _wrapped_view
   76.                     response = view_func(request, *args, **kwargs)
 File "/home/visi/ARcur/parts/django/django/utils/decorators.py" in
 bound_func
   17.                 return func(self, *args2, **kwargs2)
 File "/home/visi/ARcur/HRAR/formSetWizard.py" in __call__
   67.                 form = self.get_form(next_step)
 File "/home/visi/ARcur/parts/django/django/contrib/formtools/wizard.py" in
 get_form
   47.         return self.form_list[step](data,
 prefix=self.prefix_for_step(step), initial=self.initial.get(step, None))
 File "/home/visi/ARcur/parts/django/django/forms/formsets.py" in __init__
   47.         self._construct_forms()
 File "/home/visi/ARcur/parts/django/django/forms/formsets.py" in
 _construct_forms
   97.             self.forms.append(self._construct_form(i))
 File "/home/visi/ARcur/parts/django/django/forms/formsets.py" in
 _construct_form
   109.                 defaults['initial'] = self.initial[i]

 Exception Type: KeyError at /curricula/inserisci-candidato-e-curriculum/
 Exception Value: 0

 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11112#comment:8>
Django <http://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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to