mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-13 10:03:20 +03:00
Set view.format_kwarg in schema generator (#4315)
This commit is contained in:
parent
8ebf81b150
commit
3586c8a61a
|
@ -84,6 +84,7 @@ class SchemaGenerator(object):
|
||||||
method = link.action.upper()
|
method = link.action.upper()
|
||||||
view = callback.cls()
|
view = callback.cls()
|
||||||
view.request = clone_request(request, method)
|
view.request = clone_request(request, method)
|
||||||
|
view.format_kwarg = None
|
||||||
try:
|
try:
|
||||||
view.check_permissions(view.request)
|
view.check_permissions(view.request)
|
||||||
except exceptions.APIException:
|
except exceptions.APIException:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user