Kaydet (Commit) ece3a7c3 authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

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

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
üst 790f0eb7
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment