Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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: http://code.djangoproject.com/svn/django/trunk@15564 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit eb80803454441be0f9d10232fc3b00d40682a2d7 1 parent e06dfda
authored February 18, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  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::
606 606
 
607 607
         @method_decorator(login_required)
608 608
         def dispatch(self, *args, **kwargs):
609  
-            return super(ProtectedView, self).dispatch(**kwargs)
  609
+            return super(ProtectedView, self).dispatch(*args, **kwargs)
610 610
 
611 611
 In this example, every instance of ``ProtectedView`` will have
612 612
 login protection.

0 notes on commit eb80803

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