mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 11:04:02 +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)
|
@cache_page(60 * 15)
|
||||||
@vary_on_cookie
|
@vary_on_cookie
|
||||||
@api_view(['GET'])
|
@api_view(["GET"])
|
||||||
def get_user_list(request):
|
def get_user_list(request):
|
||||||
content = {
|
content = {"user_feed": request.user.get_user_feed()}
|
||||||
'user_feed': request.user.get_user_feed()
|
|
||||||
}
|
|
||||||
return Response(content)
|
return Response(content)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user