File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # Django REST framework 3.7
3
+
4
+ The 3.7 release focuses on improvements to schema generation and interactive API
5
+ documentation.
6
+
7
+ ## Per-view customisation of schema generation.
8
+
9
+ ` APIView ` now exposes a ` schema ` attribute. By default this is an instance of
10
+ ` rest_framwork.schemas.AutoSchema ` . You can subclass this to customise schema
11
+ generation on a per-view basis, whilst maintaining the default schema generation
12
+ elsewhere.
13
+
14
+ See [ Schema Docs] [ schema-docs ] for full details.
15
+
16
+ [ schema-docs ] : ../api-guide/schemas.md
17
+
18
+ ## Deprecations
19
+
20
+ ### ` exclude_from_schema `
21
+
22
+ Both ` APIView.exclude_from_schema ` and the ` exclude_from_schema ` argument to the
23
+ ` @api_view ` decorator and now ` PendingDeprecation ` .
24
+
25
+ For ` APIView ` set ` schema = None ` . For function based views use the ` @schema `
26
+ decorator passing ` None ` .
27
+
28
+
29
+
You can’t perform that action at this time.
0 commit comments