mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +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()
|
||||
view = callback.cls()
|
||||
view.request = clone_request(request, method)
|
||||
view.format_kwarg = None
|
||||
try:
|
||||
view.check_permissions(view.request)
|
||||
except exceptions.APIException:
|
||||
|
|
Loading…
Reference in New Issue
Block a user