Updated docs

This commit is contained in:
enrico 2022-09-01 09:04:19 +08:00
parent 0400834a33
commit 5e3140a435

View File

@ -221,7 +221,7 @@ You may pass `None` in order to exclude the view from schema generation.
When using Django 4.1 and above, REST framework allows you to work with async class based and function based views. When using Django 4.1 and above, REST framework allows you to work with async class based and function based views.
For class based view, the view needs the handler methods such as `.get()`, `.post()`, `put()`, `patch()` and `.delete()` to be all async otherwise Django will raise an exception. For function based view the view needs to be async. For class based view, the view needs the handler methods such as `.get()`, `.post()`, `put()`, `patch()` and `.delete()` to be all async otherwise Django will raise an exception. For function based view, the view needs to be async.
For example: For example: