Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #15794 -- Corrected an error in the docs which indicated applyi…

…ng decorators to any of the view-like methods would work when it will only work reliably with dispatch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16056 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 99c179442782ea83c52452296d5769950f23a75a 1 parent 1b1060c
authored April 20, 2011

Showing 1 changed file with 2 additions and 5 deletions. Show diff stats Hide diff stats

  1. 7  docs/topics/class-based-views.txt
7  docs/topics/class-based-views.txt
@@ -585,11 +585,8 @@ Decorating the class
585 585
 --------------------
586 586
 
587 587
 To decorate every instance of a class-based view, you need to decorate
588  
-the class definition itself. To do this you apply the decorator to one
589  
-of the view-like methods on the class; that is,
590  
-:meth:`~django.views.generic.base.View.dispatch`, or one of the HTTP
591  
-methods (:meth:`~django.views.generic.base.View.get`,
592  
-:meth:`~django.views.generic.base.View.post` etc).
  588
+the class definition itself. To do this you apply the decorator to the
  589
+:meth:`~django.views.generic.base.View.dispatch` method of the class.
593 590
 
594 591
 A method on a class isn't quite the same as a standalone function, so
595 592
 you can't just apply a function decorator to the method -- you need to

0 notes on commit 99c1794

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