Set view.format_kwarg in schema generator (#4315)

This commit is contained in:
Tom Christie 2016-07-27 14:43:45 +01:00 committed by GitHub
parent 8ebf81b150
commit 3586c8a61a

View File

@ -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: