Skip to content

Commit aa74ead

Browse files
committed
blacken-docs: Adds commas at the end to make it look identical to pre-black version
1 parent 7316e22 commit aa74ead

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docs/api-guide/caching.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ class UserViewSet(viewsets.ViewSet):
3131
@method_decorator(cache_page(60 * 60 * 2))
3232
@method_decorator(vary_on_cookie)
3333
def list(self, request, format=None):
34-
content = {"user_feed": request.user.get_user_feed()}
34+
content = {
35+
"user_feed": request.user.get_user_feed(),
36+
}
3537
return Response(content)
3638

3739

@@ -44,15 +46,20 @@ class ProfileView(APIView):
4446
)
4547
)
4648
def get(self, request, format=None):
47-
content = {"user_feed": request.user.get_user_feed()}
49+
content = {
50+
"user_feed": request.user.get_user_feed(),
51+
}
4852
return Response(content)
4953

5054

5155
class PostView(APIView):
5256
# Cache page for the requested url
5357
@method_decorator(cache_page(60 * 60 * 2))
5458
def get(self, request, format=None):
55-
content = {"title": "Post title", "body": "Post content"}
59+
content = {
60+
"title": "Post title",
61+
"body": "Post content",
62+
}
5663
return Response(content)
5764
```
5865

0 commit comments

Comments
 (0)