Skip to content

Commit 3586c8a

Browse files
authored
Set view.format_kwarg in schema generator (#4315)
1 parent 8ebf81b commit 3586c8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest_framework/schemas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def get_schema(self, request=None):
8484
method = link.action.upper()
8585
view = callback.cls()
8686
view.request = clone_request(request, method)
87+
view.format_kwarg = None
8788
try:
8889
view.check_permissions(view.request)
8990
except exceptions.APIException:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy