I use a wrapping view, rather like this:
# urls.py
(r'^my_url/?$', my_view, ...)
# views.py
@permission_required('some_permission')
def my_view(request):
return MyWizard([Step1, Step2, Step3, ...])
On Nov 3, 9:54 am, cootetom <[email protected]> wrote:
> 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 [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-users?hl=en.