Skip to content

Commit 0cbc14a

Browse files
committed
Begin releae anouncement
1 parent d20d701 commit 0cbc14a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/topics/3.7-announcement.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+

0 commit comments

Comments
 (0)