Browse files

Corrected a markup problem with an example in the class-based view do…

…cs. Thanks to apollo13 for the report.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 790f0eb commit ece3a7c3c73f46171ef8c5f51e2b28784fe57fab @freakboy3742 freakboy3742 committed Nov 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/topics/class-based-views.txt
@@ -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

0 comments on commit ece3a7c

Please sign in to comment.