update description

This commit is contained in:
caitinggui 2018-01-24 09:02:07 +08:00
parent 4036f1c121
commit ec4339bd47

View File

@ -98,7 +98,7 @@ class ViewWithDecorator(HTTPMethodView):
app.add_route(ViewWithDecorator.as_view(), '/url') app.add_route(ViewWithDecorator.as_view(), '/url')
``` ```
But if you just want to decorator some functions and not all functions, you can use as followed. But if you just want to decorate some functions and not all functions, you can do as follows:
```python ```python
class ViewWithSomeDecorator(HTTPMethodView): class ViewWithSomeDecorator(HTTPMethodView):