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
This commit is contained in:
Russell Keith-Magee 2010-11-20 11:33:43 +00:00
parent 790f0eb7fe
commit ece3a7c3c7
1 changed files with 1 additions and 1 deletions

View File

@ -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 you can't just apply a function decorator to the method -- you need to
transform it into a method decorator first. The ``method_decorator`` transform it into a method decorator first. The ``method_decorator``
decorator transforms a function decorator into a method decorator so 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.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator from django.utils.decorators import method_decorator