Skip to content

Commit 085b7e1

Browse files
authored
Apply black formatting to caching markdown (#9341)
It _looks_ like blacken-docs is failing on this file. Running black locally fails with a failed to reformat. This is because it expects python code, and when it hits the ">", there's invalid python.
1 parent f4194c4 commit 085b7e1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/api-guide/caching.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,9 @@ from rest_framework.response import Response
7575

7676
@cache_page(60 * 15)
7777
@vary_on_cookie
78-
@api_view(['GET'])
78+
@api_view(["GET"])
7979
def get_user_list(request):
80-
content = {
81-
'user_feed': request.user.get_user_feed()
82-
}
80+
content = {"user_feed": request.user.get_user_feed()}
8381
return Response(content)
8482
```
8583

0 commit comments

Comments
 (0)