Fixed #15342 -- Passed *args through to the parent class' dispatch method in the CBV example. Thanks to jnns for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15564 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e06dfda918
commit
eb80803454
|
@ -606,7 +606,7 @@ that it can be used on an instance method. For example::
|
||||||
|
|
||||||
@method_decorator(login_required)
|
@method_decorator(login_required)
|
||||||
def dispatch(self, *args, **kwargs):
|
def dispatch(self, *args, **kwargs):
|
||||||
return super(ProtectedView, self).dispatch(**kwargs)
|
return super(ProtectedView, self).dispatch(*args, **kwargs)
|
||||||
|
|
||||||
In this example, every instance of ``ProtectedView`` will have
|
In this example, every instance of ``ProtectedView`` will have
|
||||||
login protection.
|
login protection.
|
||||||
|
|
Loading…
Reference in New Issue