diff options
| author | Gabriel Hurley <gabehr@gmail.com> | 2011-02-18 13:40:53 +0000 |
|---|---|---|
| committer | Gabriel Hurley <gabehr@gmail.com> | 2011-02-18 13:40:53 +0000 |
| commit | eb80803454441be0f9d10232fc3b00d40682a2d7 (patch) | |
| tree | 65421acc0524ec770ad2ab3bcc465b6b8c0c964d | |
| parent | e06dfda91862d8c5015b0036c59d829359ed7f7b (diff) | |
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
| -rw-r--r-- | docs/topics/class-based-views.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/class-based-views.txt b/docs/topics/class-based-views.txt index 7446f6ab92..2612ffedba 100644 --- a/docs/topics/class-based-views.txt +++ b/docs/topics/class-based-views.txt @@ -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. |
