Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #15342 -- Passed *args through to the parent class' dispatch me…

…thod in the CBV example. Thanks to jnns for the report and patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent e06dfda commit eb80803454441be0f9d10232fc3b00d40682a2d7 Gabriel Hurley committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/topics/class-based-views.txt
2  docs/topics/class-based-views.txt
@@ -606,7 +606,7 @@ that it can be used on an instance method. For example::
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
login protection.

0 comments on commit eb80803

Please sign in to comment.
Something went wrong with that request. Please try again.