From 5e3140a435337c33fd0375b265a122f6b58be15f Mon Sep 17 00:00:00 2001 From: enrico Date: Thu, 1 Sep 2022 09:04:19 +0800 Subject: [PATCH] Updated docs --- docs/api-guide/views.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/views.md b/docs/api-guide/views.md index 3a93c2042..b116412bf 100644 --- a/docs/api-guide/views.md +++ b/docs/api-guide/views.md @@ -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. -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: