Skip to content

Commit 20d347a

Browse files
Docs: Convert all tabs into spaces (#8692)
1 parent 56946fa commit 20d347a

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

docs/api-guide/authentication.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ If the `.authenticate_header()` method is not overridden, the authentication sch
338338

339339
The following example will authenticate any incoming request as the user given by the username in a custom request header named 'X-USERNAME'.
340340

341-
from django.contrib.auth.models import User
341+
from django.contrib.auth.models import User
342342
from rest_framework import authentication
343343
from rest_framework import exceptions
344344

docs/api-guide/content-negotiation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The default content negotiation class may be set globally, using the `DEFAULT_CO
8282

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

85-
from myapp.negotiation import IgnoreClientContentNegotiation
85+
from myapp.negotiation import IgnoreClientContentNegotiation
8686
from rest_framework.response import Response
8787
from rest_framework.views import APIView
8888

docs/api-guide/reverse.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ You should **include the request as a keyword argument** to the function, for ex
3232

3333
from rest_framework.reverse import reverse
3434
from rest_framework.views import APIView
35-
from django.utils.timezone import now
36-
37-
class APIRootView(APIView):
38-
def get(self, request):
39-
year = now().year
40-
data = {
41-
...
42-
'year-summary-url': reverse('year-summary', args=[year], request=request)
35+
from django.utils.timezone import now
36+
37+
class APIRootView(APIView):
38+
def get(self, request):
39+
year = now().year
40+
data = {
41+
...
42+
'year-summary-url': reverse('year-summary', args=[year], request=request)
4343
}
44-
return Response(data)
44+
return Response(data)
4545

4646
## reverse_lazy
4747

docs/api-guide/serializers.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -910,15 +910,15 @@ We can now use this class to serialize single `HighScore` instances:
910910
def high_score(request, pk):
911911
instance = HighScore.objects.get(pk=pk)
912912
serializer = HighScoreSerializer(instance)
913-
return Response(serializer.data)
913+
return Response(serializer.data)
914914

915915
Or use it to serialize multiple instances:
916916

917917
@api_view(['GET'])
918918
def all_high_scores(request):
919919
queryset = HighScore.objects.order_by('-score')
920920
serializer = HighScoreSerializer(queryset, many=True)
921-
return Response(serializer.data)
921+
return Response(serializer.data)
922922

923923
#### Read-write `BaseSerializer` classes
924924

@@ -949,8 +949,8 @@ Here's a complete example of our previous `HighScoreSerializer`, that's been upd
949949
'player_name': 'May not be more than 10 characters.'
950950
})
951951

952-
# Return the validated values. This will be available as
953-
# the `.validated_data` property.
952+
# Return the validated values. This will be available as
953+
# the `.validated_data` property.
954954
return {
955955
'score': int(score),
956956
'player_name': player_name
@@ -1189,7 +1189,7 @@ The [drf-writable-nested][drf-writable-nested] package provides writable nested
11891189

11901190
## DRF Encrypt Content
11911191

1192-
The [drf-encrypt-content][drf-encrypt-content] package helps you encrypt your data, serialized through ModelSerializer. It also contains some helper functions. Which helps you to encrypt your data.
1192+
The [drf-encrypt-content][drf-encrypt-content] package helps you encrypt your data, serialized through ModelSerializer. It also contains some helper functions. Which helps you to encrypt your data.
11931193

11941194

11951195
[cite]: https://groups.google.com/d/topic/django-users/sVFaOfQi4wY/discussion

docs/api-guide/throttling.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ The rate descriptions used in `DEFAULT_THROTTLE_RATES` may include `second`, `mi
5050
You can also set the throttling policy on a per-view or per-viewset basis,
5151
using the `APIView` class-based views.
5252

53-
from rest_framework.response import Response
53+
from rest_framework.response import Response
5454
from rest_framework.throttling import UserRateThrottle
55-
from rest_framework.views import APIView
55+
from rest_framework.views import APIView
5656

5757
class ExampleView(APIView):
5858
throttle_classes = [UserRateThrottle]

docs/community/3.12-announcement.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ in the URL path.
3030

3131
For example...
3232

33-
Method | Path | Tags
33+
Method | Path | Tags
3434
--------------------------------|-----------------|-------------
35-
`GET`, `PUT`, `PATCH`, `DELETE` | `/users/{id}/` | `['users']`
36-
`GET`, `POST` | `/users/` | `['users']`
37-
`GET`, `PUT`, `PATCH`, `DELETE` | `/orders/{id}/` | `['orders']`
38-
`GET`, `POST` | `/orders/` | `['orders']`
35+
`GET`, `PUT`, `PATCH`, `DELETE` | `/users/{id}/` | `['users']`
36+
`GET`, `POST` | `/users/` | `['users']`
37+
`GET`, `PUT`, `PATCH`, `DELETE` | `/orders/{id}/` | `['orders']`
38+
`GET`, `POST` | `/orders/` | `['orders']`
3939

4040
The tags used for a particular view may also be overridden...
4141

0 commit comments

Comments
 (0)