Skip to content

Commit ff5cfe3

Browse files
kastomchristie
authored andcommitted
Replace "class based views" occurrences with "class-based views" (#4251)
1 parent 7c171df commit ff5cfe3

20 files changed

+33
-33
lines changed

docs/api-guide/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The default authentication schemes may be set globally, using the `DEFAULT_AUTHE
4444
}
4545

4646
You can also set the authentication scheme on a per-view or per-viewset basis,
47-
using the `APIView` class based views.
47+
using the `APIView` class-based views.
4848

4949
from rest_framework.authentication import SessionAuthentication, BasicAuthentication
5050
from rest_framework.permissions import IsAuthenticated

docs/api-guide/content-negotiation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ The default content negotiation class may be set globally, using the `DEFAULT_CO
7777
'DEFAULT_CONTENT_NEGOTIATION_CLASS': 'myapp.negotiation.IgnoreClientContentNegotiation',
7878
}
7979

80-
You can also set the content negotiation used for an individual view, or viewset, using the `APIView` class based views.
80+
You can also set the content negotiation used for an individual view, or viewset, using the `APIView` class-based views.
8181

8282
from myapp.negotiation import IgnoreClientContentNegotiation
8383
from rest_framework.response import Response

docs/api-guide/filtering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ The default filter backends may be set globally, using the `DEFAULT_FILTER_BACKE
9696
}
9797

9898
You can also set the filter backends on a per-view, or per-viewset basis,
99-
using the `GenericAPIView` class based views.
99+
using the `GenericAPIView` class-based views.
100100

101101
from django.contrib.auth.models import User
102102
from myapp.serializers import UserSerializer

docs/api-guide/format-suffixes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ When using `format_suffix_patterns`, you must make sure to add the `'format'` ke
4242
def comment_list(request, format=None):
4343
# do stuff...
4444

45-
Or with class based views:
45+
Or with class-based views:
4646

4747
class CommentList(APIView):
4848
def get(self, request, format=None):

docs/api-guide/generic-views.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source: mixins.py
77
>
88
> — [Django Documentation][cite]
99
10-
One of the key benefits of class based views is the way they allow you to compose bits of reusable behavior. REST framework takes advantage of this by providing a number of pre-built views that provide for commonly used patterns.
10+
One of the key benefits of class-based views is the way they allow you to compose bits of reusable behavior. REST framework takes advantage of this by providing a number of pre-built views that provide for commonly used patterns.
1111

1212
The generic views provided by REST framework allow you to quickly build API views that map closely to your database models.
1313

docs/api-guide/parsers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The default set of parsers may be set globally, using the `DEFAULT_PARSER_CLASSE
3535
}
3636

3737
You can also set the parsers used for an individual view, or viewset,
38-
using the `APIView` class based views.
38+
using the `APIView` class-based views.
3939

4040
from rest_framework.parsers import JSONParser
4141
from rest_framework.response import Response

docs/api-guide/permissions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ If not specified, this setting defaults to allowing unrestricted access:
7171
)
7272

7373
You can also set the authentication policy on a per-view, or per-viewset basis,
74-
using the `APIView` class based views.
74+
using the `APIView` class-based views.
7575

7676
from rest_framework.permissions import IsAuthenticated
7777
from rest_framework.response import Response

docs/api-guide/renderers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The default set of renderers may be set globally, using the `DEFAULT_RENDERER_CL
2828
}
2929

3030
You can also set the renderers used for an individual view, or viewset,
31-
using the `APIView` class based views.
31+
using the `APIView` class-based views.
3232

3333
from django.contrib.auth.models import User
3434
from rest_framework.renderers import JSONRenderer

docs/api-guide/serializers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ There are four methods that can be overridden, depending on what functionality y
876876
* `.to_internal_value()` - Override this to support deserialization, for write operations.
877877
* `.create()` and `.update()` - Override either or both of these to support saving instances.
878878

879-
Because this class provides the same interface as the `Serializer` class, you can use it with the existing generic class based views exactly as you would for a regular `Serializer` or `ModelSerializer`.
879+
Because this class provides the same interface as the `Serializer` class, you can use it with the existing generic class-based views exactly as you would for a regular `Serializer` or `ModelSerializer`.
880880

881881
The only difference you'll notice when doing so is the `BaseSerializer` classes will not generate HTML forms in the browsable API. This is because the data they return does not include all the field information that would allow each field to be rendered into a suitable HTML input.
882882

docs/api-guide/settings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The `api_settings` object will check for any user-defined settings, and otherwis
3636

3737
## API policy settings
3838

39-
*The following settings control the basic API policies, and are applied to every `APIView` class based view, or `@api_view` function based view.*
39+
*The following settings control the basic API policies, and are applied to every `APIView` class-based view, or `@api_view` function based view.*
4040

4141
#### DEFAULT_RENDERER_CLASSES
4242

@@ -98,7 +98,7 @@ Default: `'rest_framework.negotiation.DefaultContentNegotiation'`
9898

9999
## Generic view settings
100100

101-
*The following settings control the behavior of the generic class based views.*
101+
*The following settings control the behavior of the generic class-based views.*
102102

103103
#### DEFAULT_PAGINATION_SERIALIZER_CLASS
104104

0 commit comments

Comments
 (0)