Skip to content

Commit

Permalink
blacken-docs: Adds commas at the end to make it look identical to pre…
Browse files Browse the repository at this point in the history
…-black version
  • Loading branch information
jvzammit committed Mar 30, 2023
1 parent 9586719 commit a0ebbb9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/api-guide/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class UserViewSet(viewsets.ViewSet):
@method_decorator(cache_page(60 * 60 * 2))
@method_decorator(vary_on_cookie)
def list(self, request, format=None):
content = {"user_feed": request.user.get_user_feed()}
content = {
"user_feed": request.user.get_user_feed(),
}
return Response(content)


Expand All @@ -44,15 +46,20 @@ class ProfileView(APIView):
)
)
def get(self, request, format=None):
content = {"user_feed": request.user.get_user_feed()}
content = {
"user_feed": request.user.get_user_feed(),
}
return Response(content)


class PostView(APIView):
# Cache page for the requested url
@method_decorator(cache_page(60 * 60 * 2))
def get(self, request, format=None):
content = {"title": "Post title", "body": "Post content"}
content = {
"title": "Post title",
"body": "Post content",
}
return Response(content)
```

Expand Down

0 comments on commit a0ebbb9

Please sign in to comment.