update description
This commit is contained in:
parent
4036f1c121
commit
ec4339bd47
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user