Skip to content

Commit

Permalink
Scheduled biweekly dependency update for week 18 (#939)
Browse files Browse the repository at this point in the history
* Update black from 20.8b1 to 21.4b2
* Update faker from 8.1.0 to 8.1.2

Co-authored-by: Oliver Sauder <[email protected]>
  • Loading branch information
pyup-bot and sliverc authored May 4, 2021
1 parent fbb4b03 commit 16a3d6b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements/requirements-codestyle.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black==20.8b1
black==21.4b2
flake8==3.9.1
flake8-isort==4.0.0
isort==5.8.0
2 changes: 1 addition & 1 deletion requirements/requirements-testing.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
django-debug-toolbar==3.2.1
factory-boy==3.2.0
Faker==8.1.0
Faker==8.1.2
pytest==6.2.3
pytest-cov==2.11.1
pytest-django==4.2.0
Expand Down
2 changes: 1 addition & 1 deletion rest_framework_json_api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def get_resource_type_from_serializer(serializer):


def get_included_resources(request, serializer=None):
""" Build a list of included resources. """
"""Build a list of included resources."""
include_resources_param = request.query_params.get("include") if request else None
if include_resources_param:
return include_resources_param.split(",")
Expand Down
2 changes: 1 addition & 1 deletion rest_framework_json_api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_queryset(self, *args, **kwargs):

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

included_resources = get_included_resources(
Expand Down

0 comments on commit 16a3d6b

Please sign in to comment.