Skip to content

Commit

Permalink
Fixed #15342 -- Passed *args through to the parent class' dispatch me…
Browse files Browse the repository at this point in the history
…thod 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
  • Loading branch information
Gabriel Hurley committed Feb 18, 2011
1 parent e06dfda commit eb80803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/class-based-views.txt
Expand Up @@ -606,7 +606,7 @@ that it can be used on an instance method. For example::

@method_decorator(login_required)
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.
Expand Down

0 comments on commit eb80803

Please sign in to comment.