Skip to content

Commit fa13a1e

Browse files
authored
Merge branch 'main' into fix/nulls-distinct-validator-8409
2 parents 245fed5 + 249fb47 commit fa13a1e

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
hooks:
2525
- id: blacken-docs
2626
additional_dependencies:
27-
- black==25.9.0
27+
- black==26.1.0
2828
- repo: https://github.com/codespell-project/codespell
2929
# Configuration for codespell is in pyproject.toml
3030
rev: v2.4.1
@@ -34,11 +34,11 @@ repos:
3434
# python doesn't come with a toml parser prior to 3.11
3535
- "tomli; python_version < '3.11'"
3636
- repo: https://github.com/asottile/pyupgrade
37-
rev: v3.21.0
37+
rev: v3.21.2
3838
hooks:
3939
- id: pyupgrade
4040
args: ["--py310-plus", "--keep-percent-format"]
4141
- repo: https://github.com/tox-dev/pyproject-fmt
42-
rev: v2.11.0
42+
rev: v2.11.1
4343
hooks:
4444
- id: pyproject-fmt

docs/api-guide/permissions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ Provided they inherit from `rest_framework.permissions.BasePermission`, permissi
138138
return Response(content)
139139

140140
!!! note
141-
Composition of permissions supports `&` (and), `|` (or) and `~` (not) operators.
141+
Composition of permissions supports the `&` (and), `|` (or) and `~` (not) operators, and also allows the use of brackets `(` `)` to group expressions.
142+
143+
Operators follow the same precedence and associativity rules as standard logical operators (`~` highest, then `&`, then `|`).
144+
142145

143146
# API Reference
144147

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ each Python and Django series.
6969

7070
The following packages are optional:
7171

72-
* [PyYAML][pyyaml], [uritemplate][uriteemplate] (5.1+, 3.0.0+) - Schema generation support.
72+
* [PyYAML][pyyaml], [uritemplate][uritemplate] (5.1+, 3.0.0+) - Schema generation support.
7373
* [Markdown][markdown] (3.3.0+) - Markdown support for the browsable API.
7474
* [Pygments][pygments] (2.7.0+) - Add syntax highlighting to Markdown processing.
7575
* [django-filter][django-filter] (1.0.1+) - Filtering support.
@@ -207,7 +207,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
207207
[heroku]: https://www.heroku.com/
208208
[eventbrite]: https://www.eventbrite.co.uk/about/
209209
[pyyaml]: https://pypi.org/project/PyYAML/
210-
[uriteemplate]: https://pypi.org/project/uritemplate/
210+
[uritemplate]: https://pypi.org/project/uritemplate/
211211
[markdown]: https://pypi.org/project/Markdown/
212212
[pygments]: https://pypi.org/project/Pygments/
213213
[django-filter]: https://pypi.org/project/django-filter/

docs/topics/documenting-your-api.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
>
55
> &mdash; Roy Fielding, [REST APIs must be hypertext driven][cite]
66
7-
REST framework provides a range of different choices for documenting your API. The following
8-
is a non-exhaustive list of the most popular ones.
7+
REST framework provides a range of different choices for documenting your API. The following is a non-exhaustive list of some of the most popular options.
98

10-
## Third party packages for OpenAPI support
9+
## Third-party packages for OpenAPI support
10+
11+
REST framework recommends using third-party packages for generating and presenting OpenAPI schemas, as they provide more features and flexibility than the built-in (deprecated) implementation.
1112

1213
### drf-spectacular
1314

@@ -37,9 +38,9 @@ This also translates into a very useful interactive documentation viewer in the
3738

3839
## Built-in OpenAPI schema generation (deprecated)
3940

40-
**Deprecation notice: REST framework's built-in support for generating OpenAPI schemas is
41-
deprecated in favor of 3rd party packages that can provide this functionality instead.
42-
As replacement, we recommend using the [drf-spectacular](#drf-spectacular) package.**
41+
!!! warning
42+
**Deprecation notice:** REST framework's built-in support for generating OpenAPI schemas is deprecated in favor of third-party packages that provide this functionality instead. As a replacement, we recommend using **drf-spectacular**.
43+
4344

4445
There are a number of packages available that allow you to generate HTML
4546
documentation pages from OpenAPI schemas.

0 commit comments

Comments
 (0)