From f18b043a3c1eee62ac23323c9cca49982e013042 Mon Sep 17 00:00:00 2001 From: Chris Guo Date: Fri, 18 Oct 2019 17:50:49 +0800 Subject: [PATCH] Fix: some small mistakes of grammar --- docs/community/3.10-announcement.md | 2 +- docs/topics/documenting-your-api.md | 2 +- tests/test_relations.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/community/3.10-announcement.md b/docs/community/3.10-announcement.md index 065dd3480..578e900dc 100644 --- a/docs/community/3.10-announcement.md +++ b/docs/community/3.10-announcement.md @@ -84,7 +84,7 @@ urlpatterns = [ ### Customization -For customizations that you want to apply across the the entire API, you can subclass `rest_framework.schemas.openapi.SchemaGenerator` and provide it as an argument +For customizations that you want to apply across the entire API, you can subclass `rest_framework.schemas.openapi.SchemaGenerator` and provide it as an argument to the `generateschema` command or `get_schema_view()` helper function. For specific per-view customizations, you can subclass `AutoSchema`, diff --git a/docs/topics/documenting-your-api.md b/docs/topics/documenting-your-api.md index cf3977d90..b4c7dea4d 100644 --- a/docs/topics/documenting-your-api.md +++ b/docs/topics/documenting-your-api.md @@ -221,7 +221,7 @@ If the python `Markdown` library is installed, then [markdown syntax][markdown] [ref]: http://example.com/activating-accounts """ -Note that when using viewsets the basic docstring is used for all generated views. To provide descriptions for each view, such as for the the list and retrieve views, use docstring sections as described in [Schemas as documentation: Examples][schemas-examples]. +Note that when using viewsets the basic docstring is used for all generated views. To provide descriptions for each view, such as for the list and retrieve views, use docstring sections as described in [Schemas as documentation: Examples][schemas-examples]. #### The `OPTIONS` method diff --git a/tests/test_relations.py b/tests/test_relations.py index 3281b7ea2..c89293415 100644 --- a/tests/test_relations.py +++ b/tests/test_relations.py @@ -251,7 +251,7 @@ class TestHyperlinkedIdentityField(APISimpleTestCase): def test_improperly_configured(self): """ If a matching view cannot be reversed with the given instance, - the the user has misconfigured something, as the URL conf and the + the user has misconfigured something, as the URL conf and the hyperlinked field do not match. """ self.field.reverse = fail_reverse