You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-guide/views.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,8 +186,13 @@ The available decorators are:
186
186
*`@authentication_classes(...)`
187
187
*`@throttle_classes(...)`
188
188
*`@permission_classes(...)`
189
+
*`@content_negotiation_class(...)`
190
+
*`@metadata_class(...)`
191
+
*`@versioning_class(...)`
189
192
190
-
Each of these decorators takes a single argument which must be a list or tuple of classes.
193
+
Each of these decorators is equivalent to setting their respective [api policy attributes][api-policy-attributes].
194
+
195
+
All decorators take a single argument. The ones that end with `_class` expect a single class while the ones ending in `_classes` expect a list or tuple of classes.
191
196
192
197
193
198
## View schema decorator
@@ -224,4 +229,5 @@ You may pass `None` in order to exclude the view from schema generation.
0 commit comments