Skip to content

Commit 0e1c5d3

Browse files
minho42rpkilby
authored andcommitted
Fix typos (#6835)
1 parent ca72787 commit 0e1c5d3

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

docs/api-guide/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ If the `.authenticate_header()` method is not overridden, the authentication sch
324324

325325
---
326326

327-
**Note:** When your custom authenticator is invoked by the request object's `.user` or `.auth` properties, you may see an `AttributeError` re-raised as a `WrappedAttributeError`. This is necessary to prevent the original exception from being suppressed by the outer property access. Python will not recognize that the `AttributeError` orginates from your custom authenticator and will instead assume that the request object does not have a `.user` or `.auth` property. These errors should be fixed or otherwise handled by your authenticator.
327+
**Note:** When your custom authenticator is invoked by the request object's `.user` or `.auth` properties, you may see an `AttributeError` re-raised as a `WrappedAttributeError`. This is necessary to prevent the original exception from being suppressed by the outer property access. Python will not recognize that the `AttributeError` originates from your custom authenticator and will instead assume that the request object does not have a `.user` or `.auth` property. These errors should be fixed or otherwise handled by your authenticator.
328328

329329
---
330330

docs/api-guide/permissions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ The following third party packages are also available.
286286

287287
## DRF - Access Policy
288288

289-
The [Django REST - Access Policy][drf-access-policy] package provides a way to define complex access rules in declaritive policy classes that are attached to view sets or function-based views. The policies are defined in JSON in a format similar to AWS' Identity & Access Management policies.
289+
The [Django REST - Access Policy][drf-access-policy] package provides a way to define complex access rules in declarative policy classes that are attached to view sets or function-based views. The policies are defined in JSON in a format similar to AWS' Identity & Access Management policies.
290290

291291
## Composed Permissions
292292

docs/api-guide/requests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ You won't typically need to access this property.
9393

9494
---
9595

96-
**Note:** You may see a `WrappedAttributeError` raised when calling the `.user` or `.auth` properties. These errors originate from an authenticator as a standard `AttributeError`, however it's necessary that they be re-raised as a different exception type in order to prevent them from being suppressed by the outer property access. Python will not recognize that the `AttributeError` orginates from the authenticator and will instead assume that the request object does not have a `.user` or `.auth` property. The authenticator will need to be fixed.
96+
**Note:** You may see a `WrappedAttributeError` raised when calling the `.user` or `.auth` properties. These errors originate from an authenticator as a standard `AttributeError`, however it's necessary that they be re-raised as a different exception type in order to prevent them from being suppressed by the outer property access. Python will not recognize that the `AttributeError` originates from the authenticator and will instead assume that the request object does not have a `.user` or `.auth` property. The authenticator will need to be fixed.
9797

9898
---
9999

docs/community/third-party-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ We recommend using [Travis CI][travis-ci], a hosted continuous integration servi
5555

5656
To get started with Travis CI, [sign in][travis-ci] with your GitHub account. Once you're signed in, go to your [profile page][travis-profile] and enable the service hook for the repository you want.
5757

58-
If you use the cookiecutter template, your project will already contain a `.travis.yml` file which Travis CI will use to build your project and run tests. By default, builds are triggered everytime you push to your repository or create Pull Request.
58+
If you use the cookiecutter template, your project will already contain a `.travis.yml` file which Travis CI will use to build your project and run tests. By default, builds are triggered every time you push to your repository or create Pull Request.
5959

6060
#### Uploading to PyPI
6161

docs/coreapi/schemas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ An `APIView`, with an explicit method docstring.
480480
usernames = [user.username for user in User.objects.all()]
481481
return Response(usernames)
482482

483-
A `ViewSet`, with an explict action docstring.
483+
A `ViewSet`, with an explicit action docstring.
484484

485485
class ListUsernames(ViewSet):
486486
def list(self, request):

docs/topics/documenting-your-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ There are also a number of great third-party documentation packages available.
1212
## Generating documentation from OpenAPI schemas
1313

1414
There are a number of packages available that allow you to generate HTML
15-
documenation pages from OpenAPI schemas.
15+
documentation pages from OpenAPI schemas.
1616

1717
Two popular options are [Swagger UI][swagger-ui] and [ReDoc][redoc].
1818

rest_framework/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ def update(self, instance, validated_data):
976976
instance.save()
977977

978978
# Note that many-to-many fields are set after updating instance.
979-
# Setting m2m fields triggers signals which could potentialy change
979+
# Setting m2m fields triggers signals which could potentially change
980980
# updated instance and we do not want it to collide with .update()
981981
for attr, value in m2m_fields:
982982
field = getattr(instance, attr)

rest_framework/templatetags/rest_framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def format_value(value):
233233
def items(value):
234234
"""
235235
Simple filter to return the items of the dict. Useful when the dict may
236-
have a key 'items' which is resolved first in Django tempalte dot-notation
236+
have a key 'items' which is resolved first in Django template dot-notation
237237
lookup. See issue #4931
238238
Also see: https://stackoverflow.com/questions/15416662/django-template-loop-over-dictionary-items-with-items-as-key
239239
"""

rest_framework/viewsets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def as_view(cls, actions=None, **initkwargs):
5353
and slightly modify the view function that is created and returned.
5454
"""
5555
# The name and description initkwargs may be explicitly overridden for
56-
# certain route confiugurations. eg, names of extra actions.
56+
# certain route configurations. eg, names of extra actions.
5757
cls.name = None
5858
cls.description = None
5959

tests/test_model_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class Meta:
303303
def test_invalid_field(self):
304304
"""
305305
Field names that do not map to a model field or relationship should
306-
raise a configuration errror.
306+
raise a configuration error.
307307
"""
308308
class TestSerializer(serializers.ModelSerializer):
309309
class Meta:

tests/test_templatetags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def test_multiple_nested_routes(self):
540540
]
541541
),
542542
'create': coreapi.Link(
543-
url='/aniamls/cat',
543+
url='/animals/cat',
544544
action='post',
545545
fields=[]
546546
)
@@ -589,7 +589,7 @@ def test_multiple_resources_with_multiple_nested_routes(self):
589589
]
590590
),
591591
'create': coreapi.Link(
592-
url='/aniamls/cat',
592+
url='/animals/cat',
593593
action='post',
594594
fields=[]
595595
)

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def test_modelviewset_action_suffix_kwarg(self):
174174

175175
class JsonFloatTests(TestCase):
176176
"""
177-
Internaly, wrapped json functions should adhere to strict float handling
177+
Internally, wrapped json functions should adhere to strict float handling
178178
"""
179179

180180
def test_dumps(self):

0 commit comments

Comments
 (0)