Skip to content

Commit

Permalink
Apply black formatting to caching markdown (#9341)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jthevos committed Mar 27, 2024
1 parent f4194c4 commit 085b7e1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/api-guide/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ from rest_framework.response import Response

@cache_page(60 * 15)
@vary_on_cookie
@api_view(['GET'])
@api_view(["GET"])
def get_user_list(request):
content = {
'user_feed': request.user.get_user_feed()
}
content = {"user_feed": request.user.get_user_feed()}
return Response(content)
```

Expand Down

0 comments on commit 085b7e1

Please sign in to comment.