Wednesday, November 3, 2010

FormWizard and permission_required

Hi,

When creating normal views I can decorate the view with
@permission_required('some_permission') but when I'm using a
FormWizard class I don't know where to limit access to it based on
permissions? I have a FormWizard mapped to a URL:

(r'^my_url/?$', Wizard([Step1, Step2, Step3])),

Then I have the form class's and wizard class as needed. I'm stumped
as to where I might limit access to this URL based on permissions?

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate