Hello mates!

I have some problems to understand how to set the view for
the NamedUrlSessionWizardView creating a instance_dict based on the user in
the request.

in my urls.py

    url(r'wizard/new/(?P<step>.+)/$',
        ServiceCUWizard.as_view(
           FORMS,   # the list of ['form_name', form_object]
           url_name='service:new_wizard_step',
           done_step_name='finished',
        ), name='new_wizard_step'),

It works, I got all the forms as expected.

The forms are modelforms and I would like to bound the instance if is
possible, but I can populate it only using the request. I think I could do
that subclassing def __init__, but the instance_dict is a class attribute,
how I can populate it?

Thnak you



-- 
Karim N. Gorjux

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACeuRGVpYubs4vekD3ynEP9oAMeF8NcZXVV2PmBOT%2BaukGL8qQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to