mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-21 17:16:47 +03:00
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.
This commit is contained in:
parent
f4194c4684
commit
085b7e166b
|
@ -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)
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user