From 085b7e166ba80aa973645e5249b441f2dbdc0c96 Mon Sep 17 00:00:00 2001 From: "John-Anthony G. Thevos" Date: Wed, 27 Mar 2024 06:39:49 -0400 Subject: [PATCH] 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. --- docs/api-guide/caching.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/api-guide/caching.md b/docs/api-guide/caching.md index d5f7ecb3a..c4ab215c8 100644 --- a/docs/api-guide/caching.md +++ b/docs/api-guide/caching.md @@ -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) ```