Skip to content

Commit ecbdbfd

Browse files
authored
Merge branch 'master' into issue-templates
2 parents 475e7c3 + af1c804 commit ecbdbfd

File tree

7 files changed

+10
-13
lines changed

7 files changed

+10
-13
lines changed

CHANGELOG.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
Note that in line with [Django REST Framework policy](http://www.django-rest-framework.org/topics/release-notes/),
99
any parts of the framework not mentioned in the documentation should generally be considered private API, and may be subject to change.
1010

11-
## [Unreleased]
11+
## [4.2.0] - 2021-05-12
1212

1313
### Added
1414

@@ -26,16 +26,13 @@ any parts of the framework not mentioned in the documentation should generally b
2626
name='order-related'),
2727
```
2828
* Ensure default `included_resources` are considered when calculating prefetches.
29-
29+
* Avoided error when using `include` query parameter on related urls (a regression since 4.1.0)
3030

3131
### Deprecated
3232

3333
* Deprecated default `format_type` argument of `rest_framework_json_api.utils.format_value`. Use `rest_framework_json_api.utils.format_field_name` or specify specifc `format_type` instead.
34-
* Deprecated `format_type` argument of `rest_framework_json_api.utils.format_link_segment`. Use `format_value` instead.
34+
* Deprecated `format_type` argument of `rest_framework_json_api.utils.format_link_segment`. Use `rest_framework_json_api.utils.format_value` instead.
3535

36-
### Fixed
37-
38-
* Avoided error when using `include` query parameter on related urls (a regression since 4.1.0)
3936

4037
## [4.1.0] - 2021-03-08
4138

SECURITY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
If you believe you've found something in Django REST Framework JSON API which has security implications, please **do not raise the issue in a public forum**.
66

7-
Send a description of the issue via email to [[email protected]][security-mail]. The project maintainers will then work with you to resolve any issues where required, prior to any public disclosure.
7+
Send a description of the issue via email to [rest-framework-jsonapi-[email protected]][security-mail]. The project maintainers will then work with you to resolve any issues where required, prior to any public disclosure.
88

9-
[security-mail]: mailto:[email protected]
9+
[security-mail]: mailto:rest-framework-jsonapi-[email protected]
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
black==20.8b1
1+
black==21.4b2
22
flake8==3.9.1
33
flake8-isort==4.0.0
44
isort==5.8.0

requirements/requirements-testing.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
django-debug-toolbar==3.2.1
22
factory-boy==3.2.0
3-
Faker==8.1.0
3+
Faker==8.1.2
44
pytest==6.2.3
55
pytest-cov==2.11.1
66
pytest-django==4.2.0

rest_framework_json_api/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
__title__ = "djangorestframework-jsonapi"
4-
__version__ = "4.1.0"
4+
__version__ = "4.2.0"
55
__author__ = ""
66
__license__ = "BSD"
77
__copyright__ = ""

rest_framework_json_api/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def get_resource_type_from_serializer(serializer):
326326

327327

328328
def get_included_resources(request, serializer=None):
329-
""" Build a list of included resources. """
329+
"""Build a list of included resources."""
330330
include_resources_param = request.query_params.get("include") if request else None
331331
if include_resources_param:
332332
return include_resources_param.split(",")

rest_framework_json_api/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_queryset(self, *args, **kwargs):
8181

8282
class AutoPrefetchMixin(object):
8383
def get_queryset(self, *args, **kwargs):
84-
""" This mixin adds automatic prefetching for OneToOne and ManyToMany fields. """
84+
"""This mixin adds automatic prefetching for OneToOne and ManyToMany fields."""
8585
qs = super(AutoPrefetchMixin, self).get_queryset(*args, **kwargs)
8686

8787
included_resources = get_included_resources(

0 commit comments

Comments
 (0)