Ticket #15794: documentation.diff

File documentation.diff, 914 bytes (added by Mike Fogel, 14 years ago)
  • docs/topics/class-based-views.txt

    diff --git a/docs/topics/class-based-views.txt b/docs/topics/class-based-views.txt
    index 2612ffe..eb3ae15 100644
    a b Decorating the class  
    585585--------------------
    586586
    587587To 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).
     588the class definition itself. To do this you apply the decorator to the
     589dispatch method: :meth:`~django.views.generic.base.View.dispatch`.
    593590
    594591A method on a class isn't quite the same as a standalone function, so
    595592you can't just apply a function decorator to the method -- you need to
Back to Top