mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Merge pull request #4286 from osantana/patch-1
Fix SwaggerRenderer implementation example
This commit is contained in:
commit
0f61c9ec29
|
@ -246,7 +246,7 @@ to the Open API ("Swagger") format:
|
|||
|
||||
def render(self, data, media_type=None, renderer_context=None):
|
||||
codec = OpenAPICodec()
|
||||
return OpenAPICodec.dump(data)
|
||||
return codec.dump(data)
|
||||
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user