Commit ece3a7c3 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Corrected a markup problem with an example in the class-based view docs....

Corrected a markup problem with an example in the class-based view docs. Thanks to apollo13 for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14649 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 790f0eb7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -579,7 +579,7 @@ A method on a class isn't quite the same as a standalone function, so
you can't just apply a function decorator to the method -- you need to
transform it into a method decorator first. The ``method_decorator``
decorator transforms a function decorator into a method decorator so
that it can be used on an instance method.
that it can be used on an instance method. For example::

    from django.contrib.auth.decorators import login_required
    from django.utils.decorators import method_decorator