Hi,

You could instead just override get_form_instance(step). That way you'll 
have access to self.request.

Collin

On Tuesday, February 17, 2015 at 8:26:30 PM UTC-5, Karim Gorjux wrote:
>
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/c7e931b5-1671-4570-be34-6894fc97c43c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to