diff options
Diffstat (limited to 'docs')
| -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. |
